@shwfed/config 2.4.1 → 2.5.0
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 +87 -24
- package/dist/module.json +1 -1
- package/dist/preview/assets/{config-Q86AhjHq.js → config-BkytEQN5.js} +1 -1
- package/dist/preview/assets/{config-EKVeWrbS.js → config-CK011_jJ.js} +1 -1
- package/dist/preview/assets/{config-ByTxMBcK.js → config-C_bBX0wD.js} +1 -1
- package/dist/preview/assets/{config-DiwVK32V.js → config-Cbn8o9BY.js} +1 -1
- package/dist/preview/assets/{config-BovRv7Mw.js → config-DYL6kHr3.js} +1 -1
- package/dist/preview/assets/{config-C7xYpB3N.js → config-Dx0zHfGt.js} +1 -1
- package/dist/preview/assets/{config-D50Rl2n_.js → config-E-DM6b5t.js} +1 -1
- package/dist/preview/assets/{config-Ch5dL5lp.js → config-PjseWUbC.js} +1 -1
- package/dist/preview/assets/{config-CH9wsYX8.js → config-dwcdYHd4.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-uJFJXxli.js} +1 -1
- package/dist/preview/assets/{index-65eB1l4r.css → index-7MVXgV5n.css} +1 -1
- package/dist/preview/assets/index-CmPiZG_4.js +1 -0
- package/dist/preview/assets/index-x-77enex.js +668 -0
- package/dist/preview/assets/{runtime-Ch3JIgUQ.js → runtime-BRMGkqSr.js} +1 -1
- package/dist/preview/assets/{runtime-BwR_BbTu.js → runtime-CHLboM_z.js} +1 -1
- package/dist/preview/assets/{runtime-BQSwNpLC.js → runtime-CeHdesjP.js} +1 -1
- package/dist/preview/assets/{runtime-D34aQN00.js → runtime-D4_9FCLy.js} +1 -1
- package/dist/preview/assets/{runtime-aPt-bW3F.js → runtime-DHBTDws7.js} +1 -1
- package/dist/preview/assets/{runtime-a9TOQRwD.js → runtime-DJHpCLnr.js} +1 -1
- package/dist/preview/assets/{runtime-Cunk4vOs.js → runtime-DKq86fZU.js} +1 -1
- package/dist/preview/assets/{runtime-CjvZcU7X.js → runtime-DjpjaNec.js} +1 -1
- package/dist/preview/assets/{runtime-BP7zXnyG.js → runtime-ZQryOEKm.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/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.date/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.vue +20 -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 +20 -8
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +1 -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 +1 -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 +1 -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 +1 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -0
- 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 +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -0
- 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 +2 -0
- 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-single/config.d.vue.ts +2 -0
- 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 +2 -0
- 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/config.vue +20 -45
- 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/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";
|
|
@@ -400,14 +399,10 @@ function updateTriggers(next) {
|
|
|
400
399
|
<Separator />
|
|
401
400
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
402
401
|
<Field
|
|
403
|
-
orientation="
|
|
404
|
-
class="w-
|
|
402
|
+
orientation="vertical"
|
|
403
|
+
class="w-full max-w-xs"
|
|
405
404
|
>
|
|
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">
|
|
405
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
411
406
|
<template
|
|
412
407
|
v-if="fieldDescription('enableSorting')"
|
|
413
408
|
#tooltip
|
|
@@ -420,6 +415,23 @@ function updateTriggers(next) {
|
|
|
420
415
|
</template>
|
|
421
416
|
{{ fieldTitle("enableSorting") }}
|
|
422
417
|
</FieldLabel>
|
|
418
|
+
<InputGroup>
|
|
419
|
+
<InputGroupInput
|
|
420
|
+
:model-value="value.sortKey"
|
|
421
|
+
placeholder="例:created_at"
|
|
422
|
+
@update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
|
|
423
|
+
/>
|
|
424
|
+
<InputGroupAddon align="inline-end">
|
|
425
|
+
<InputGroupButton
|
|
426
|
+
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
427
|
+
size="xs"
|
|
428
|
+
@click="value = { ...value, enableSorting: !value.enableSorting }"
|
|
429
|
+
>
|
|
430
|
+
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
431
|
+
{{ fieldTitle("enableSorting") }}
|
|
432
|
+
</InputGroupButton>
|
|
433
|
+
</InputGroupAddon>
|
|
434
|
+
</InputGroup>
|
|
423
435
|
</Field>
|
|
424
436
|
</div>
|
|
425
437
|
</div>
|
|
@@ -51,6 +51,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
51
51
|
readonly locale: "en" | "ja" | "ko";
|
|
52
52
|
readonly message: string;
|
|
53
53
|
}[]];
|
|
54
|
+
readonly sortKey?: string | undefined;
|
|
54
55
|
readonly successMessage?: string | undefined;
|
|
55
56
|
}) => any;
|
|
56
57
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -102,6 +103,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
102
103
|
readonly locale: "en" | "ja" | "ko";
|
|
103
104
|
readonly message: string;
|
|
104
105
|
}[]];
|
|
106
|
+
readonly sortKey?: string | undefined;
|
|
105
107
|
readonly successMessage?: string | undefined;
|
|
106
108
|
}) => any) | undefined;
|
|
107
109
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -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<{
|
|
@@ -65,6 +65,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
65
65
|
readonly grow?: boolean | undefined;
|
|
66
66
|
readonly accessor: string;
|
|
67
67
|
readonly enableSorting?: boolean | undefined;
|
|
68
|
+
readonly sortKey?: string | undefined;
|
|
68
69
|
readonly successMessage?: string | undefined;
|
|
69
70
|
}) => any;
|
|
70
71
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -130,6 +131,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
130
131
|
readonly grow?: boolean | undefined;
|
|
131
132
|
readonly accessor: string;
|
|
132
133
|
readonly enableSorting?: boolean | undefined;
|
|
134
|
+
readonly sortKey?: string | undefined;
|
|
133
135
|
readonly successMessage?: string | undefined;
|
|
134
136
|
}) => any) | undefined;
|
|
135
137
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -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>
|
|
@@ -65,6 +65,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
65
65
|
readonly grow?: boolean | undefined;
|
|
66
66
|
readonly accessor: string;
|
|
67
67
|
readonly enableSorting?: boolean | undefined;
|
|
68
|
+
readonly sortKey?: string | undefined;
|
|
68
69
|
readonly successMessage?: string | undefined;
|
|
69
70
|
}) => any;
|
|
70
71
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -130,6 +131,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
130
131
|
readonly grow?: boolean | undefined;
|
|
131
132
|
readonly accessor: string;
|
|
132
133
|
readonly enableSorting?: boolean | undefined;
|
|
134
|
+
readonly sortKey?: string | undefined;
|
|
133
135
|
readonly successMessage?: string | undefined;
|
|
134
136
|
}) => any) | undefined;
|
|
135
137
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -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<{
|
|
@@ -79,6 +79,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
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: {
|
|
@@ -157,6 +158,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
157
158
|
}[];
|
|
158
159
|
};
|
|
159
160
|
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="
|
|
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>
|
|
@@ -79,6 +79,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
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: {
|
|
@@ -157,6 +158,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
157
158
|
}[];
|
|
158
159
|
};
|
|
159
160
|
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;
|
|
@@ -231,6 +231,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
231
231
|
}>]>;
|
|
232
232
|
binding: Schema.refine<string, typeof Schema.String>;
|
|
233
233
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
234
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
234
235
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
235
236
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
236
237
|
tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
@@ -80,6 +80,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
82
|
readonly enableSorting?: boolean | undefined;
|
|
83
|
+
readonly sortKey?: string | undefined;
|
|
83
84
|
readonly successMessage?: string | undefined;
|
|
84
85
|
}) => any;
|
|
85
86
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -160,6 +161,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
160
161
|
}[];
|
|
161
162
|
};
|
|
162
163
|
readonly enableSorting?: boolean | undefined;
|
|
164
|
+
readonly sortKey?: string | undefined;
|
|
163
165
|
readonly successMessage?: string | undefined;
|
|
164
166
|
}) => any) | undefined;
|
|
165
167
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -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";
|
|
@@ -706,14 +705,10 @@ function setItemTooltip(index, tooltip) {
|
|
|
706
705
|
<Separator />
|
|
707
706
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
708
707
|
<Field
|
|
709
|
-
orientation="
|
|
710
|
-
class="w-
|
|
708
|
+
orientation="vertical"
|
|
709
|
+
class="w-full max-w-xs"
|
|
711
710
|
>
|
|
712
|
-
<
|
|
713
|
-
:model-value="value.enableSorting ?? false"
|
|
714
|
-
@update:model-value="(v) => value = { ...value, enableSorting: v }"
|
|
715
|
-
/>
|
|
716
|
-
<FieldLabel class="text-sm text-zinc-600">
|
|
711
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
717
712
|
<template
|
|
718
713
|
v-if="fieldDescription('enableSorting')"
|
|
719
714
|
#tooltip
|
|
@@ -726,6 +721,23 @@ function setItemTooltip(index, tooltip) {
|
|
|
726
721
|
</template>
|
|
727
722
|
{{ fieldTitle("enableSorting") }}
|
|
728
723
|
</FieldLabel>
|
|
724
|
+
<InputGroup>
|
|
725
|
+
<InputGroupInput
|
|
726
|
+
:model-value="value.sortKey"
|
|
727
|
+
placeholder="例:created_at"
|
|
728
|
+
@update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
|
|
729
|
+
/>
|
|
730
|
+
<InputGroupAddon align="inline-end">
|
|
731
|
+
<InputGroupButton
|
|
732
|
+
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
733
|
+
size="xs"
|
|
734
|
+
@click="value = { ...value, enableSorting: !value.enableSorting }"
|
|
735
|
+
>
|
|
736
|
+
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
737
|
+
{{ fieldTitle("enableSorting") }}
|
|
738
|
+
</InputGroupButton>
|
|
739
|
+
</InputGroupAddon>
|
|
740
|
+
</InputGroup>
|
|
729
741
|
</Field>
|
|
730
742
|
</div>
|
|
731
743
|
</div>
|
|
@@ -80,6 +80,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
82
|
readonly enableSorting?: boolean | undefined;
|
|
83
|
+
readonly sortKey?: string | undefined;
|
|
83
84
|
readonly successMessage?: string | undefined;
|
|
84
85
|
}) => any;
|
|
85
86
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -160,6 +161,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
160
161
|
}[];
|
|
161
162
|
};
|
|
162
163
|
readonly enableSorting?: boolean | undefined;
|
|
164
|
+
readonly sortKey?: string | undefined;
|
|
163
165
|
readonly successMessage?: string | undefined;
|
|
164
166
|
}) => any) | undefined;
|
|
165
167
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -233,6 +233,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
233
233
|
}>]>;
|
|
234
234
|
accessor: Schema.Schema<string, string, never>;
|
|
235
235
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
236
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
236
237
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
237
238
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
238
239
|
tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
@@ -79,6 +79,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
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: {
|
|
@@ -157,6 +158,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
157
158
|
}[];
|
|
158
159
|
};
|
|
159
160
|
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="
|
|
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>
|
|
@@ -79,6 +79,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
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: {
|
|
@@ -157,6 +158,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
157
158
|
}[];
|
|
158
159
|
};
|
|
159
160
|
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;
|
|
@@ -231,6 +231,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
231
231
|
}>]>;
|
|
232
232
|
binding: Schema.refine<string, typeof Schema.String>;
|
|
233
233
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
234
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
234
235
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
235
236
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
236
237
|
tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
@@ -80,6 +80,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
82
|
readonly enableSorting?: boolean | undefined;
|
|
83
|
+
readonly sortKey?: string | undefined;
|
|
83
84
|
readonly successMessage?: string | undefined;
|
|
84
85
|
}) => any;
|
|
85
86
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -160,6 +161,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
160
161
|
}[];
|
|
161
162
|
};
|
|
162
163
|
readonly enableSorting?: boolean | undefined;
|
|
164
|
+
readonly sortKey?: string | undefined;
|
|
163
165
|
readonly successMessage?: string | undefined;
|
|
164
166
|
}) => any) | undefined;
|
|
165
167
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -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";
|
|
@@ -706,14 +705,10 @@ function setItemTooltip(index, tooltip) {
|
|
|
706
705
|
<Separator />
|
|
707
706
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
708
707
|
<Field
|
|
709
|
-
orientation="
|
|
710
|
-
class="w-
|
|
708
|
+
orientation="vertical"
|
|
709
|
+
class="w-full max-w-xs"
|
|
711
710
|
>
|
|
712
|
-
<
|
|
713
|
-
:model-value="value.enableSorting ?? false"
|
|
714
|
-
@update:model-value="(v) => value = { ...value, enableSorting: v }"
|
|
715
|
-
/>
|
|
716
|
-
<FieldLabel class="text-sm text-zinc-600">
|
|
711
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
717
712
|
<template
|
|
718
713
|
v-if="fieldDescription('enableSorting')"
|
|
719
714
|
#tooltip
|
|
@@ -726,6 +721,23 @@ function setItemTooltip(index, tooltip) {
|
|
|
726
721
|
</template>
|
|
727
722
|
{{ fieldTitle("enableSorting") }}
|
|
728
723
|
</FieldLabel>
|
|
724
|
+
<InputGroup>
|
|
725
|
+
<InputGroupInput
|
|
726
|
+
:model-value="value.sortKey"
|
|
727
|
+
placeholder="例:created_at"
|
|
728
|
+
@update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
|
|
729
|
+
/>
|
|
730
|
+
<InputGroupAddon align="inline-end">
|
|
731
|
+
<InputGroupButton
|
|
732
|
+
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
733
|
+
size="xs"
|
|
734
|
+
@click="value = { ...value, enableSorting: !value.enableSorting }"
|
|
735
|
+
>
|
|
736
|
+
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
737
|
+
{{ fieldTitle("enableSorting") }}
|
|
738
|
+
</InputGroupButton>
|
|
739
|
+
</InputGroupAddon>
|
|
740
|
+
</InputGroup>
|
|
729
741
|
</Field>
|
|
730
742
|
</div>
|
|
731
743
|
</div>
|
|
@@ -80,6 +80,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
82
|
readonly enableSorting?: boolean | undefined;
|
|
83
|
+
readonly sortKey?: string | undefined;
|
|
83
84
|
readonly successMessage?: string | undefined;
|
|
84
85
|
}) => any;
|
|
85
86
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -160,6 +161,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
160
161
|
}[];
|
|
161
162
|
};
|
|
162
163
|
readonly enableSorting?: boolean | undefined;
|
|
164
|
+
readonly sortKey?: string | undefined;
|
|
163
165
|
readonly successMessage?: string | undefined;
|
|
164
166
|
}) => any) | undefined;
|
|
165
167
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -233,6 +233,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
233
233
|
}>]>;
|
|
234
234
|
accessor: Schema.Schema<string, string, never>;
|
|
235
235
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
236
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
236
237
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
237
238
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
238
239
|
tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
@@ -63,6 +63,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
63
63
|
readonly message: string;
|
|
64
64
|
}[]] | undefined;
|
|
65
65
|
readonly nodeSelectable?: string | undefined;
|
|
66
|
+
readonly sortKey?: string | undefined;
|
|
66
67
|
}) => any;
|
|
67
68
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
68
69
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -125,6 +126,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
125
126
|
readonly message: string;
|
|
126
127
|
}[]] | undefined;
|
|
127
128
|
readonly nodeSelectable?: string | undefined;
|
|
129
|
+
readonly sortKey?: string | undefined;
|
|
128
130
|
}) => any) | undefined;
|
|
129
131
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
130
132
|
declare const _default: typeof __VLS_export;
|
|
@@ -581,14 +581,10 @@ const derivedModel = computed({
|
|
|
581
581
|
<Separator />
|
|
582
582
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
583
583
|
<Field
|
|
584
|
-
orientation="
|
|
585
|
-
class="w-
|
|
584
|
+
orientation="vertical"
|
|
585
|
+
class="w-full max-w-xs"
|
|
586
586
|
>
|
|
587
|
-
<
|
|
588
|
-
:model-value="value.enableSorting ?? false"
|
|
589
|
-
@update:model-value="(v) => value = { ...value, enableSorting: v }"
|
|
590
|
-
/>
|
|
591
|
-
<FieldLabel class="text-sm text-zinc-600">
|
|
587
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
592
588
|
<template
|
|
593
589
|
v-if="fieldDescription('enableSorting')"
|
|
594
590
|
#tooltip
|
|
@@ -601,6 +597,23 @@ const derivedModel = computed({
|
|
|
601
597
|
</template>
|
|
602
598
|
{{ fieldTitle("enableSorting") }}
|
|
603
599
|
</FieldLabel>
|
|
600
|
+
<InputGroup>
|
|
601
|
+
<InputGroupInput
|
|
602
|
+
:model-value="value.sortKey"
|
|
603
|
+
placeholder="例:created_at"
|
|
604
|
+
@update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
|
|
605
|
+
/>
|
|
606
|
+
<InputGroupAddon align="inline-end">
|
|
607
|
+
<InputGroupButton
|
|
608
|
+
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
609
|
+
size="xs"
|
|
610
|
+
@click="value = { ...value, enableSorting: !value.enableSorting }"
|
|
611
|
+
>
|
|
612
|
+
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
613
|
+
{{ fieldTitle("enableSorting") }}
|
|
614
|
+
</InputGroupButton>
|
|
615
|
+
</InputGroupAddon>
|
|
616
|
+
</InputGroup>
|
|
604
617
|
</Field>
|
|
605
618
|
</div>
|
|
606
619
|
</div>
|
|
@@ -63,6 +63,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
63
63
|
readonly message: string;
|
|
64
64
|
}[]] | undefined;
|
|
65
65
|
readonly nodeSelectable?: string | undefined;
|
|
66
|
+
readonly sortKey?: string | undefined;
|
|
66
67
|
}) => any;
|
|
67
68
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
68
69
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -125,6 +126,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
125
126
|
readonly message: string;
|
|
126
127
|
}[]] | undefined;
|
|
127
128
|
readonly nodeSelectable?: string | undefined;
|
|
129
|
+
readonly sortKey?: string | undefined;
|
|
128
130
|
}) => any) | undefined;
|
|
129
131
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
130
132
|
declare const _default: typeof __VLS_export;
|
|
@@ -71,6 +71,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
71
71
|
}>]>;
|
|
72
72
|
binding: Schema.refine<string, typeof Schema.String>;
|
|
73
73
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
74
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
74
75
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
75
76
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
76
77
|
tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|