@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.
- package/dist/mcp.mjs +222 -45
- package/dist/module.json +1 -1
- package/dist/preview/assets/{config-ByTxMBcK.js → config-2hrRmW-I.js} +1 -1
- package/dist/preview/assets/{config-Q86AhjHq.js → config-BfzthOw9.js} +1 -1
- package/dist/preview/assets/{config-C7xYpB3N.js → config-BsgSoDjY.js} +1 -1
- package/dist/preview/assets/{config-CH9wsYX8.js → config-CaLzEMyt.js} +1 -1
- package/dist/preview/assets/{config-D50Rl2n_.js → config-DKtPKn2s.js} +1 -1
- package/dist/preview/assets/{config-BovRv7Mw.js → config-DdgZWox9.js} +1 -1
- package/dist/preview/assets/{config-Ch5dL5lp.js → config-h_LH1CT_.js} +1 -1
- package/dist/preview/assets/{config-DiwVK32V.js → config-nsiwkAq8.js} +1 -1
- package/dist/preview/assets/{config-EKVeWrbS.js → config-zxVo1EOM.js} +1 -1
- 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
- package/dist/preview/assets/index-C0NJ1FZp.js +1 -0
- package/dist/preview/assets/index-C5dK4QAf.js +668 -0
- package/dist/preview/assets/{index-65eB1l4r.css → index-nvAUAYGM.css} +1 -1
- package/dist/preview/assets/{runtime-D34aQN00.js → runtime-527oKJb4.js} +1 -1
- package/dist/preview/assets/{runtime-BP7zXnyG.js → runtime-BLhH77F7.js} +1 -1
- package/dist/preview/assets/{runtime-a9TOQRwD.js → runtime-BRWnAaFs.js} +1 -1
- package/dist/preview/assets/{runtime-BwR_BbTu.js → runtime-CEXA5ttw.js} +1 -1
- package/dist/preview/assets/{runtime-Cunk4vOs.js → runtime-CZZWuLu9.js} +1 -1
- package/dist/preview/assets/{runtime-Ch3JIgUQ.js → runtime-DOLtY37Y.js} +1 -1
- package/dist/preview/assets/{runtime-BQSwNpLC.js → runtime-DZqXButD.js} +1 -1
- package/dist/preview/assets/{runtime-aPt-bW3F.js → runtime-MJo092Ed.js} +1 -1
- package/dist/preview/assets/{runtime-CjvZcU7X.js → runtime-i3-6DCWP.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +1 -1
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/index.vue +5 -18
- package/dist/runtime/components/form/schema.d.ts +2 -10
- package/dist/runtime/components/form/schema.js +2 -5
- package/dist/runtime/components/form/utils/cel-scope.d.ts +12 -3
- package/dist/runtime/components/form/utils/cel-scope.js +17 -18
- package/dist/runtime/components/form/utils/form-vars.d.ts +19 -0
- package/dist/runtime/components/form/utils/form-vars.js +5 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.js +8 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.js +8 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue +21 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue +21 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.js +8 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.js +5 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue +21 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.vue +21 -8
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +21 -8
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/config.vue +20 -7
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue +21 -8
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue +21 -8
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -6
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue +20 -7
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -6
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue +20 -7
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.js +10 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.js +10 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -6
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue +20 -7
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -6
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.js +3 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue +20 -7
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +6 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.js +3 -0
- package/dist/runtime/components/table/config.vue +24 -103
- package/dist/runtime/components/table/index.vue +22 -2
- package/dist/runtime/components/table/schema.d.ts +4 -2
- package/dist/runtime/components/table/schema.js +69 -13
- package/dist/runtime/components/table/utils/resolve.d.ts +14 -0
- package/dist/runtime/components/table/utils/resolve.js +2 -1
- package/dist/runtime/components/table/utils/shared.d.ts +2 -0
- package/dist/runtime/components/table/utils/shared.js +10 -2
- package/package.json +1 -1
- package/dist/preview/assets/index-CIrlYN0M.js +0 -1
- 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="
|
|
404
|
-
class="w-
|
|
403
|
+
orientation="vertical"
|
|
404
|
+
class="w-full max-w-xs"
|
|
405
405
|
>
|
|
406
|
-
<
|
|
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="
|
|
564
|
-
class="w-
|
|
562
|
+
orientation="vertical"
|
|
563
|
+
class="w-full max-w-xs"
|
|
565
564
|
>
|
|
566
|
-
<
|
|
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="
|
|
511
|
-
class="w-
|
|
509
|
+
orientation="vertical"
|
|
510
|
+
class="w-full max-w-xs"
|
|
512
511
|
>
|
|
513
|
-
<
|
|
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="
|
|
404
|
-
class="w-
|
|
403
|
+
orientation="vertical"
|
|
404
|
+
class="w-full max-w-xs"
|
|
405
405
|
>
|
|
406
|
-
<
|
|
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="
|
|
564
|
-
class="w-
|
|
562
|
+
orientation="vertical"
|
|
563
|
+
class="w-full max-w-xs"
|
|
565
564
|
>
|
|
566
|
-
<
|
|
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
|
|
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
|
|
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="
|
|
677
|
-
class="w-
|
|
675
|
+
orientation="vertical"
|
|
676
|
+
class="w-full max-w-xs"
|
|
678
677
|
>
|
|
679
|
-
<
|
|
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>
|