@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
|
@@ -28,6 +28,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
28
28
|
}>]>;
|
|
29
29
|
accessor: Schema.Schema<string, string, never>;
|
|
30
30
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
31
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
31
32
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
32
33
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
33
34
|
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<{
|
|
@@ -449,14 +449,10 @@ function onValueAsStringChange(next) {
|
|
|
449
449
|
<Separator />
|
|
450
450
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
451
451
|
<Field
|
|
452
|
-
orientation="
|
|
453
|
-
class="w-
|
|
452
|
+
orientation="vertical"
|
|
453
|
+
class="w-full max-w-xs"
|
|
454
454
|
>
|
|
455
|
-
<
|
|
456
|
-
:model-value="value.enableSorting ?? false"
|
|
457
|
-
@update:model-value="(v) => value.enableSorting = v"
|
|
458
|
-
/>
|
|
459
|
-
<FieldLabel class="text-sm text-zinc-600">
|
|
455
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
460
456
|
<template
|
|
461
457
|
v-if="fieldDescription('enableSorting')"
|
|
462
458
|
#tooltip
|
|
@@ -469,6 +465,23 @@ function onValueAsStringChange(next) {
|
|
|
469
465
|
</template>
|
|
470
466
|
{{ fieldTitle("enableSorting") }}
|
|
471
467
|
</FieldLabel>
|
|
468
|
+
<InputGroup>
|
|
469
|
+
<InputGroupInput
|
|
470
|
+
:model-value="value.sortKey"
|
|
471
|
+
placeholder="例:created_at"
|
|
472
|
+
@update:model-value="(v) => value.sortKey = v || void 0"
|
|
473
|
+
/>
|
|
474
|
+
<InputGroupAddon align="inline-end">
|
|
475
|
+
<InputGroupButton
|
|
476
|
+
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
477
|
+
size="xs"
|
|
478
|
+
@click="value.enableSorting = !value.enableSorting"
|
|
479
|
+
>
|
|
480
|
+
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
481
|
+
{{ fieldTitle("enableSorting") }}
|
|
482
|
+
</InputGroupButton>
|
|
483
|
+
</InputGroupAddon>
|
|
484
|
+
</InputGroup>
|
|
472
485
|
</Field>
|
|
473
486
|
</div>
|
|
474
487
|
</div>
|
|
@@ -38,6 +38,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
38
38
|
}>]>;
|
|
39
39
|
binding: Schema.refine<string, typeof Schema.String>;
|
|
40
40
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
41
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
41
42
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
42
43
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
43
44
|
tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/config.vue
CHANGED
|
@@ -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";
|
|
@@ -284,14 +283,10 @@ const derivedModel = computed({
|
|
|
284
283
|
<Separator />
|
|
285
284
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
286
285
|
<Field
|
|
287
|
-
orientation="
|
|
288
|
-
class="w-
|
|
286
|
+
orientation="vertical"
|
|
287
|
+
class="w-full max-w-xs"
|
|
289
288
|
>
|
|
290
|
-
<
|
|
291
|
-
:model-value="value.enableSorting ?? false"
|
|
292
|
-
@update:model-value="(v) => value.enableSorting = v"
|
|
293
|
-
/>
|
|
294
|
-
<FieldLabel class="text-sm text-zinc-600">
|
|
289
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
295
290
|
<template
|
|
296
291
|
v-if="fieldDescription('enableSorting')"
|
|
297
292
|
#tooltip
|
|
@@ -304,6 +299,23 @@ const derivedModel = computed({
|
|
|
304
299
|
</template>
|
|
305
300
|
{{ fieldTitle("enableSorting") }}
|
|
306
301
|
</FieldLabel>
|
|
302
|
+
<InputGroup>
|
|
303
|
+
<InputGroupInput
|
|
304
|
+
:model-value="value.sortKey"
|
|
305
|
+
placeholder="例:created_at"
|
|
306
|
+
@update:model-value="(v) => value.sortKey = v || void 0"
|
|
307
|
+
/>
|
|
308
|
+
<InputGroupAddon align="inline-end">
|
|
309
|
+
<InputGroupButton
|
|
310
|
+
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
311
|
+
size="xs"
|
|
312
|
+
@click="value.enableSorting = !value.enableSorting"
|
|
313
|
+
>
|
|
314
|
+
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
315
|
+
{{ fieldTitle("enableSorting") }}
|
|
316
|
+
</InputGroupButton>
|
|
317
|
+
</InputGroupAddon>
|
|
318
|
+
</InputGroup>
|
|
307
319
|
</Field>
|
|
308
320
|
</div>
|
|
309
321
|
</div>
|
package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
39
39
|
}>]>;
|
|
40
40
|
binding: Schema.refine<string, typeof Schema.String>;
|
|
41
41
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
42
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
42
43
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
43
44
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
44
45
|
tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
@@ -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";
|
|
@@ -284,14 +283,10 @@ const derivedModel = computed({
|
|
|
284
283
|
<Separator />
|
|
285
284
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
286
285
|
<Field
|
|
287
|
-
orientation="
|
|
288
|
-
class="w-
|
|
286
|
+
orientation="vertical"
|
|
287
|
+
class="w-full max-w-xs"
|
|
289
288
|
>
|
|
290
|
-
<
|
|
291
|
-
:model-value="value.enableSorting ?? false"
|
|
292
|
-
@update:model-value="(v) => value.enableSorting = v"
|
|
293
|
-
/>
|
|
294
|
-
<FieldLabel class="text-sm text-zinc-600">
|
|
289
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
295
290
|
<template
|
|
296
291
|
v-if="fieldDescription('enableSorting')"
|
|
297
292
|
#tooltip
|
|
@@ -304,6 +299,23 @@ const derivedModel = computed({
|
|
|
304
299
|
</template>
|
|
305
300
|
{{ fieldTitle("enableSorting") }}
|
|
306
301
|
</FieldLabel>
|
|
302
|
+
<InputGroup>
|
|
303
|
+
<InputGroupInput
|
|
304
|
+
:model-value="value.sortKey"
|
|
305
|
+
placeholder="例:created_at"
|
|
306
|
+
@update:model-value="(v) => value.sortKey = v || void 0"
|
|
307
|
+
/>
|
|
308
|
+
<InputGroupAddon align="inline-end">
|
|
309
|
+
<InputGroupButton
|
|
310
|
+
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
311
|
+
size="xs"
|
|
312
|
+
@click="value.enableSorting = !value.enableSorting"
|
|
313
|
+
>
|
|
314
|
+
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
315
|
+
{{ fieldTitle("enableSorting") }}
|
|
316
|
+
</InputGroupButton>
|
|
317
|
+
</InputGroupAddon>
|
|
318
|
+
</InputGroup>
|
|
307
319
|
</Field>
|
|
308
320
|
</div>
|
|
309
321
|
</div>
|
|
@@ -39,6 +39,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
39
39
|
}>]>;
|
|
40
40
|
binding: Schema.refine<string, typeof Schema.String>;
|
|
41
41
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
42
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
42
43
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
43
44
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
44
45
|
tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
@@ -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";
|
|
@@ -266,14 +265,10 @@ const derivedModel = computed({
|
|
|
266
265
|
<Separator />
|
|
267
266
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
268
267
|
<Field
|
|
269
|
-
orientation="
|
|
270
|
-
class="w-
|
|
268
|
+
orientation="vertical"
|
|
269
|
+
class="w-full max-w-xs"
|
|
271
270
|
>
|
|
272
|
-
<
|
|
273
|
-
:model-value="value.enableSorting ?? false"
|
|
274
|
-
@update:model-value="(v) => value.enableSorting = v"
|
|
275
|
-
/>
|
|
276
|
-
<FieldLabel class="text-sm text-zinc-600">
|
|
271
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
277
272
|
<template
|
|
278
273
|
v-if="fieldDescription('enableSorting')"
|
|
279
274
|
#tooltip
|
|
@@ -286,6 +281,23 @@ const derivedModel = computed({
|
|
|
286
281
|
</template>
|
|
287
282
|
{{ fieldTitle("enableSorting") }}
|
|
288
283
|
</FieldLabel>
|
|
284
|
+
<InputGroup>
|
|
285
|
+
<InputGroupInput
|
|
286
|
+
:model-value="value.sortKey"
|
|
287
|
+
placeholder="例:created_at"
|
|
288
|
+
@update:model-value="(v) => value.sortKey = v || void 0"
|
|
289
|
+
/>
|
|
290
|
+
<InputGroupAddon align="inline-end">
|
|
291
|
+
<InputGroupButton
|
|
292
|
+
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
293
|
+
size="xs"
|
|
294
|
+
@click="value.enableSorting = !value.enableSorting"
|
|
295
|
+
>
|
|
296
|
+
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
297
|
+
{{ fieldTitle("enableSorting") }}
|
|
298
|
+
</InputGroupButton>
|
|
299
|
+
</InputGroupAddon>
|
|
300
|
+
</InputGroup>
|
|
289
301
|
</Field>
|
|
290
302
|
</div>
|
|
291
303
|
</div>
|
|
@@ -32,6 +32,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
32
32
|
}>]>;
|
|
33
33
|
binding: Schema.refine<string, typeof Schema.String>;
|
|
34
34
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
35
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
35
36
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
36
37
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
37
38
|
tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
@@ -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>;
|
|
@@ -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<{
|
|
@@ -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<{
|
|
@@ -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>;
|