@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
|
@@ -43,6 +43,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
43
43
|
readonly data: string;
|
|
44
44
|
readonly request?: string | undefined;
|
|
45
45
|
};
|
|
46
|
+
readonly enableSorting?: boolean | undefined;
|
|
46
47
|
readonly nodeKey: string;
|
|
47
48
|
readonly nodeChildren: string;
|
|
48
49
|
readonly nodeLabel: readonly [{
|
|
@@ -52,8 +53,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
52
53
|
readonly locale: "en" | "ja" | "ko";
|
|
53
54
|
readonly message: string;
|
|
54
55
|
}[]];
|
|
55
|
-
readonly expandAll: boolean;
|
|
56
|
-
readonly enableSorting?: boolean | undefined;
|
|
57
56
|
readonly nodeTooltip?: readonly [{
|
|
58
57
|
readonly locale: "zh";
|
|
59
58
|
readonly message: string;
|
|
@@ -62,6 +61,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
62
61
|
readonly message: string;
|
|
63
62
|
}[]] | undefined;
|
|
64
63
|
readonly nodeSelectable?: string | undefined;
|
|
64
|
+
readonly expandAll: boolean;
|
|
65
|
+
readonly sortKey?: string | undefined;
|
|
65
66
|
}) => any;
|
|
66
67
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
67
68
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -104,6 +105,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
104
105
|
readonly data: string;
|
|
105
106
|
readonly request?: string | undefined;
|
|
106
107
|
};
|
|
108
|
+
readonly enableSorting?: boolean | undefined;
|
|
107
109
|
readonly nodeKey: string;
|
|
108
110
|
readonly nodeChildren: string;
|
|
109
111
|
readonly nodeLabel: readonly [{
|
|
@@ -113,8 +115,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
113
115
|
readonly locale: "en" | "ja" | "ko";
|
|
114
116
|
readonly message: string;
|
|
115
117
|
}[]];
|
|
116
|
-
readonly expandAll: boolean;
|
|
117
|
-
readonly enableSorting?: boolean | undefined;
|
|
118
118
|
readonly nodeTooltip?: readonly [{
|
|
119
119
|
readonly locale: "zh";
|
|
120
120
|
readonly message: string;
|
|
@@ -123,6 +123,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
123
123
|
readonly message: string;
|
|
124
124
|
}[]] | undefined;
|
|
125
125
|
readonly nodeSelectable?: string | undefined;
|
|
126
|
+
readonly expandAll: boolean;
|
|
127
|
+
readonly sortKey?: string | undefined;
|
|
126
128
|
}) => any) | undefined;
|
|
127
129
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
128
130
|
declare const _default: typeof __VLS_export;
|
|
@@ -512,14 +512,10 @@ const derivedModel = computed({
|
|
|
512
512
|
<Separator />
|
|
513
513
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
514
514
|
<Field
|
|
515
|
-
orientation="
|
|
516
|
-
class="w-
|
|
515
|
+
orientation="vertical"
|
|
516
|
+
class="w-full max-w-xs"
|
|
517
517
|
>
|
|
518
|
-
<
|
|
519
|
-
:model-value="value.enableSorting ?? false"
|
|
520
|
-
@update:model-value="(v) => value = { ...value, enableSorting: v }"
|
|
521
|
-
/>
|
|
522
|
-
<FieldLabel class="text-sm text-zinc-600">
|
|
518
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
523
519
|
<template
|
|
524
520
|
v-if="fieldDescription('enableSorting')"
|
|
525
521
|
#tooltip
|
|
@@ -532,6 +528,23 @@ const derivedModel = computed({
|
|
|
532
528
|
</template>
|
|
533
529
|
{{ fieldTitle("enableSorting") }}
|
|
534
530
|
</FieldLabel>
|
|
531
|
+
<InputGroup>
|
|
532
|
+
<InputGroupInput
|
|
533
|
+
:model-value="value.sortKey"
|
|
534
|
+
placeholder="例:created_at"
|
|
535
|
+
@update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
|
|
536
|
+
/>
|
|
537
|
+
<InputGroupAddon align="inline-end">
|
|
538
|
+
<InputGroupButton
|
|
539
|
+
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
540
|
+
size="xs"
|
|
541
|
+
@click="value = { ...value, enableSorting: !value.enableSorting }"
|
|
542
|
+
>
|
|
543
|
+
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
544
|
+
{{ fieldTitle("enableSorting") }}
|
|
545
|
+
</InputGroupButton>
|
|
546
|
+
</InputGroupAddon>
|
|
547
|
+
</InputGroup>
|
|
535
548
|
</Field>
|
|
536
549
|
</div>
|
|
537
550
|
</div>
|
|
@@ -43,6 +43,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
43
43
|
readonly data: string;
|
|
44
44
|
readonly request?: string | undefined;
|
|
45
45
|
};
|
|
46
|
+
readonly enableSorting?: boolean | undefined;
|
|
46
47
|
readonly nodeKey: string;
|
|
47
48
|
readonly nodeChildren: string;
|
|
48
49
|
readonly nodeLabel: readonly [{
|
|
@@ -52,8 +53,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
52
53
|
readonly locale: "en" | "ja" | "ko";
|
|
53
54
|
readonly message: string;
|
|
54
55
|
}[]];
|
|
55
|
-
readonly expandAll: boolean;
|
|
56
|
-
readonly enableSorting?: boolean | undefined;
|
|
57
56
|
readonly nodeTooltip?: readonly [{
|
|
58
57
|
readonly locale: "zh";
|
|
59
58
|
readonly message: string;
|
|
@@ -62,6 +61,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
62
61
|
readonly message: string;
|
|
63
62
|
}[]] | undefined;
|
|
64
63
|
readonly nodeSelectable?: string | undefined;
|
|
64
|
+
readonly expandAll: boolean;
|
|
65
|
+
readonly sortKey?: string | undefined;
|
|
65
66
|
}) => any;
|
|
66
67
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
67
68
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -104,6 +105,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
104
105
|
readonly data: string;
|
|
105
106
|
readonly request?: string | undefined;
|
|
106
107
|
};
|
|
108
|
+
readonly enableSorting?: boolean | undefined;
|
|
107
109
|
readonly nodeKey: string;
|
|
108
110
|
readonly nodeChildren: string;
|
|
109
111
|
readonly nodeLabel: readonly [{
|
|
@@ -113,8 +115,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
113
115
|
readonly locale: "en" | "ja" | "ko";
|
|
114
116
|
readonly message: string;
|
|
115
117
|
}[]];
|
|
116
|
-
readonly expandAll: boolean;
|
|
117
|
-
readonly enableSorting?: boolean | undefined;
|
|
118
118
|
readonly nodeTooltip?: readonly [{
|
|
119
119
|
readonly locale: "zh";
|
|
120
120
|
readonly message: string;
|
|
@@ -123,6 +123,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
123
123
|
readonly message: string;
|
|
124
124
|
}[]] | undefined;
|
|
125
125
|
readonly nodeSelectable?: string | undefined;
|
|
126
|
+
readonly expandAll: boolean;
|
|
127
|
+
readonly sortKey?: string | undefined;
|
|
126
128
|
}) => any) | undefined;
|
|
127
129
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
128
130
|
declare const _default: typeof __VLS_export;
|
|
@@ -68,6 +68,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
68
68
|
}>]>;
|
|
69
69
|
binding: Schema.refine<string, typeof Schema.String>;
|
|
70
70
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
71
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
71
72
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
72
73
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
73
74
|
tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
@@ -43,10 +43,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
43
43
|
readonly target: string;
|
|
44
44
|
readonly operation: string;
|
|
45
45
|
}[] | undefined;
|
|
46
|
-
readonly accessor: string;
|
|
47
46
|
readonly successMessage?: string | undefined;
|
|
47
|
+
readonly accessor: string;
|
|
48
48
|
};
|
|
49
49
|
readonly grow?: boolean | undefined;
|
|
50
|
+
readonly enableSorting?: boolean | undefined;
|
|
50
51
|
readonly options: {
|
|
51
52
|
readonly kind: "remote";
|
|
52
53
|
readonly request: string;
|
|
@@ -88,7 +89,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
88
89
|
readonly keywords?: readonly string[] | undefined;
|
|
89
90
|
}[];
|
|
90
91
|
};
|
|
91
|
-
readonly
|
|
92
|
+
readonly sortKey?: string | undefined;
|
|
92
93
|
}) => any;
|
|
93
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
94
95
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -131,10 +132,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
131
132
|
readonly target: string;
|
|
132
133
|
readonly operation: string;
|
|
133
134
|
}[] | undefined;
|
|
134
|
-
readonly accessor: string;
|
|
135
135
|
readonly successMessage?: string | undefined;
|
|
136
|
+
readonly accessor: string;
|
|
136
137
|
};
|
|
137
138
|
readonly grow?: boolean | undefined;
|
|
139
|
+
readonly enableSorting?: boolean | undefined;
|
|
138
140
|
readonly options: {
|
|
139
141
|
readonly kind: "remote";
|
|
140
142
|
readonly request: string;
|
|
@@ -176,7 +178,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
176
178
|
readonly keywords?: readonly string[] | undefined;
|
|
177
179
|
}[];
|
|
178
180
|
};
|
|
179
|
-
readonly
|
|
181
|
+
readonly sortKey?: string | undefined;
|
|
180
182
|
}) => any) | undefined;
|
|
181
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
182
184
|
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";
|
|
@@ -905,14 +904,10 @@ function setItemKeywords(index, text) {
|
|
|
905
904
|
<Separator />
|
|
906
905
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
907
906
|
<Field
|
|
908
|
-
orientation="
|
|
909
|
-
class="w-
|
|
907
|
+
orientation="vertical"
|
|
908
|
+
class="w-full max-w-xs"
|
|
910
909
|
>
|
|
911
|
-
<
|
|
912
|
-
:model-value="value.enableSorting ?? false"
|
|
913
|
-
@update:model-value="(v) => value = { ...value, enableSorting: v }"
|
|
914
|
-
/>
|
|
915
|
-
<FieldLabel class="text-sm text-zinc-600">
|
|
910
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
916
911
|
<template
|
|
917
912
|
v-if="fieldDescription('enableSorting')"
|
|
918
913
|
#tooltip
|
|
@@ -925,6 +920,23 @@ function setItemKeywords(index, text) {
|
|
|
925
920
|
</template>
|
|
926
921
|
{{ fieldTitle("enableSorting") }}
|
|
927
922
|
</FieldLabel>
|
|
923
|
+
<InputGroup>
|
|
924
|
+
<InputGroupInput
|
|
925
|
+
:model-value="value.sortKey"
|
|
926
|
+
placeholder="例:created_at"
|
|
927
|
+
@update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
|
|
928
|
+
/>
|
|
929
|
+
<InputGroupAddon align="inline-end">
|
|
930
|
+
<InputGroupButton
|
|
931
|
+
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
932
|
+
size="xs"
|
|
933
|
+
@click="value = { ...value, enableSorting: !value.enableSorting }"
|
|
934
|
+
>
|
|
935
|
+
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
936
|
+
{{ fieldTitle("enableSorting") }}
|
|
937
|
+
</InputGroupButton>
|
|
938
|
+
</InputGroupAddon>
|
|
939
|
+
</InputGroup>
|
|
928
940
|
</Field>
|
|
929
941
|
</div>
|
|
930
942
|
</div>
|
|
@@ -43,10 +43,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
43
43
|
readonly target: string;
|
|
44
44
|
readonly operation: string;
|
|
45
45
|
}[] | undefined;
|
|
46
|
-
readonly accessor: string;
|
|
47
46
|
readonly successMessage?: string | undefined;
|
|
47
|
+
readonly accessor: string;
|
|
48
48
|
};
|
|
49
49
|
readonly grow?: boolean | undefined;
|
|
50
|
+
readonly enableSorting?: boolean | undefined;
|
|
50
51
|
readonly options: {
|
|
51
52
|
readonly kind: "remote";
|
|
52
53
|
readonly request: string;
|
|
@@ -88,7 +89,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
88
89
|
readonly keywords?: readonly string[] | undefined;
|
|
89
90
|
}[];
|
|
90
91
|
};
|
|
91
|
-
readonly
|
|
92
|
+
readonly sortKey?: string | undefined;
|
|
92
93
|
}) => any;
|
|
93
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
94
95
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -131,10 +132,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
131
132
|
readonly target: string;
|
|
132
133
|
readonly operation: string;
|
|
133
134
|
}[] | undefined;
|
|
134
|
-
readonly accessor: string;
|
|
135
135
|
readonly successMessage?: string | undefined;
|
|
136
|
+
readonly accessor: string;
|
|
136
137
|
};
|
|
137
138
|
readonly grow?: boolean | undefined;
|
|
139
|
+
readonly enableSorting?: boolean | undefined;
|
|
138
140
|
readonly options: {
|
|
139
141
|
readonly kind: "remote";
|
|
140
142
|
readonly request: string;
|
|
@@ -176,7 +178,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
176
178
|
readonly keywords?: readonly string[] | undefined;
|
|
177
179
|
}[];
|
|
178
180
|
};
|
|
179
|
-
readonly
|
|
181
|
+
readonly sortKey?: string | undefined;
|
|
180
182
|
}) => any) | undefined;
|
|
181
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
182
184
|
declare const _default: typeof __VLS_export;
|
|
@@ -172,6 +172,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
172
172
|
disabled: Schema.optional<Schema.Schema<string, string, never>>;
|
|
173
173
|
readonly: Schema.optional<Schema.Schema<string, string, never>>;
|
|
174
174
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
175
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
175
176
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
176
177
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
177
178
|
tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
@@ -278,6 +279,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
278
279
|
compatibilityDate: Schema.Literal<["2026-05-28"]>;
|
|
279
280
|
}>;
|
|
280
281
|
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
|
|
282
|
+
export declare function defaults(): Partial<Value>;
|
|
281
283
|
export declare const migrateFrom: ReadonlyArray<MigrateSource>;
|
|
282
284
|
export declare const migrate: MigrateFn;
|
|
283
285
|
export declare function toColumnDef(value: Value, { getLocaleText, $cel, inheritedContext }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
|
|
@@ -189,6 +189,7 @@ export function schema(configure) {
|
|
|
189
189
|
description: "\u8FD4\u56DE `true` \u65F6\u4EC5\u4EE5\u7EAF\u6587\u672C\u5C55\u793A\u5F53\u524D\u5DF2\u9009\u9879\u7684\u6807\u7B7E"
|
|
190
190
|
})),
|
|
191
191
|
enableSorting: display.enableSorting,
|
|
192
|
+
sortKey: display.sortKey,
|
|
192
193
|
size: display.size,
|
|
193
194
|
grow: display.grow,
|
|
194
195
|
tooltip: display.tooltip,
|
|
@@ -203,11 +204,19 @@ export function schema(configure) {
|
|
|
203
204
|
description: "\u4E0B\u62C9\u591A\u9009\u6E32\u67D3\u5668"
|
|
204
205
|
});
|
|
205
206
|
}
|
|
207
|
+
export function defaults() {
|
|
208
|
+
return {
|
|
209
|
+
title: [{ locale: "zh", message: "" }],
|
|
210
|
+
size: 200,
|
|
211
|
+
write: { kind: "binding", binding: "" },
|
|
212
|
+
options: { kind: "static", items: [] }
|
|
213
|
+
};
|
|
214
|
+
}
|
|
206
215
|
export const migrateFrom = [
|
|
207
216
|
{ type: "com.shwfed.table.column.combobox-multi", compatibilityDate: "2026-05-26" },
|
|
208
217
|
{ type: "com.shwfed.table.column.combobox-multi.remote", compatibilityDate: "2026-05-26" }
|
|
209
218
|
];
|
|
210
|
-
const CARRY = ["id", "groupId", "title", "size", "grow", "tooltip", "enableSorting", "placeholder", "hidden", "disabled", "readonly"];
|
|
219
|
+
const CARRY = ["id", "groupId", "title", "size", "grow", "tooltip", "enableSorting", "sortKey", "placeholder", "hidden", "disabled", "readonly"];
|
|
211
220
|
export const migrate = (prev) => Effect.try({
|
|
212
221
|
try: () => {
|
|
213
222
|
if (!prev || typeof prev !== "object") {
|
|
@@ -43,10 +43,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
43
43
|
readonly target: string;
|
|
44
44
|
readonly operation: string;
|
|
45
45
|
}[] | undefined;
|
|
46
|
-
readonly accessor: string;
|
|
47
46
|
readonly successMessage?: string | undefined;
|
|
47
|
+
readonly accessor: string;
|
|
48
48
|
};
|
|
49
49
|
readonly grow?: boolean | undefined;
|
|
50
|
+
readonly enableSorting?: boolean | undefined;
|
|
50
51
|
readonly options: {
|
|
51
52
|
readonly kind: "remote";
|
|
52
53
|
readonly request: string;
|
|
@@ -88,7 +89,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
88
89
|
readonly keywords?: readonly string[] | undefined;
|
|
89
90
|
}[];
|
|
90
91
|
};
|
|
91
|
-
readonly
|
|
92
|
+
readonly sortKey?: string | undefined;
|
|
92
93
|
}) => any;
|
|
93
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
94
95
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -131,10 +132,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
131
132
|
readonly target: string;
|
|
132
133
|
readonly operation: string;
|
|
133
134
|
}[] | undefined;
|
|
134
|
-
readonly accessor: string;
|
|
135
135
|
readonly successMessage?: string | undefined;
|
|
136
|
+
readonly accessor: string;
|
|
136
137
|
};
|
|
137
138
|
readonly grow?: boolean | undefined;
|
|
139
|
+
readonly enableSorting?: boolean | undefined;
|
|
138
140
|
readonly options: {
|
|
139
141
|
readonly kind: "remote";
|
|
140
142
|
readonly request: string;
|
|
@@ -176,7 +178,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
176
178
|
readonly keywords?: readonly string[] | undefined;
|
|
177
179
|
}[];
|
|
178
180
|
};
|
|
179
|
-
readonly
|
|
181
|
+
readonly sortKey?: string | undefined;
|
|
180
182
|
}) => any) | undefined;
|
|
181
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
182
184
|
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";
|
|
@@ -905,14 +904,10 @@ function setItemKeywords(index, text) {
|
|
|
905
904
|
<Separator />
|
|
906
905
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
907
906
|
<Field
|
|
908
|
-
orientation="
|
|
909
|
-
class="w-
|
|
907
|
+
orientation="vertical"
|
|
908
|
+
class="w-full max-w-xs"
|
|
910
909
|
>
|
|
911
|
-
<
|
|
912
|
-
:model-value="value.enableSorting ?? false"
|
|
913
|
-
@update:model-value="(v) => value = { ...value, enableSorting: v }"
|
|
914
|
-
/>
|
|
915
|
-
<FieldLabel class="text-sm text-zinc-600">
|
|
910
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
916
911
|
<template
|
|
917
912
|
v-if="fieldDescription('enableSorting')"
|
|
918
913
|
#tooltip
|
|
@@ -925,6 +920,23 @@ function setItemKeywords(index, text) {
|
|
|
925
920
|
</template>
|
|
926
921
|
{{ fieldTitle("enableSorting") }}
|
|
927
922
|
</FieldLabel>
|
|
923
|
+
<InputGroup>
|
|
924
|
+
<InputGroupInput
|
|
925
|
+
:model-value="value.sortKey"
|
|
926
|
+
placeholder="例:created_at"
|
|
927
|
+
@update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
|
|
928
|
+
/>
|
|
929
|
+
<InputGroupAddon align="inline-end">
|
|
930
|
+
<InputGroupButton
|
|
931
|
+
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
932
|
+
size="xs"
|
|
933
|
+
@click="value = { ...value, enableSorting: !value.enableSorting }"
|
|
934
|
+
>
|
|
935
|
+
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
936
|
+
{{ fieldTitle("enableSorting") }}
|
|
937
|
+
</InputGroupButton>
|
|
938
|
+
</InputGroupAddon>
|
|
939
|
+
</InputGroup>
|
|
928
940
|
</Field>
|
|
929
941
|
</div>
|
|
930
942
|
</div>
|
|
@@ -43,10 +43,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
43
43
|
readonly target: string;
|
|
44
44
|
readonly operation: string;
|
|
45
45
|
}[] | undefined;
|
|
46
|
-
readonly accessor: string;
|
|
47
46
|
readonly successMessage?: string | undefined;
|
|
47
|
+
readonly accessor: string;
|
|
48
48
|
};
|
|
49
49
|
readonly grow?: boolean | undefined;
|
|
50
|
+
readonly enableSorting?: boolean | undefined;
|
|
50
51
|
readonly options: {
|
|
51
52
|
readonly kind: "remote";
|
|
52
53
|
readonly request: string;
|
|
@@ -88,7 +89,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
88
89
|
readonly keywords?: readonly string[] | undefined;
|
|
89
90
|
}[];
|
|
90
91
|
};
|
|
91
|
-
readonly
|
|
92
|
+
readonly sortKey?: string | undefined;
|
|
92
93
|
}) => any;
|
|
93
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
94
95
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -131,10 +132,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
131
132
|
readonly target: string;
|
|
132
133
|
readonly operation: string;
|
|
133
134
|
}[] | undefined;
|
|
134
|
-
readonly accessor: string;
|
|
135
135
|
readonly successMessage?: string | undefined;
|
|
136
|
+
readonly accessor: string;
|
|
136
137
|
};
|
|
137
138
|
readonly grow?: boolean | undefined;
|
|
139
|
+
readonly enableSorting?: boolean | undefined;
|
|
138
140
|
readonly options: {
|
|
139
141
|
readonly kind: "remote";
|
|
140
142
|
readonly request: string;
|
|
@@ -176,7 +178,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
176
178
|
readonly keywords?: readonly string[] | undefined;
|
|
177
179
|
}[];
|
|
178
180
|
};
|
|
179
|
-
readonly
|
|
181
|
+
readonly sortKey?: string | undefined;
|
|
180
182
|
}) => any) | undefined;
|
|
181
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
182
184
|
declare const _default: typeof __VLS_export;
|
|
@@ -172,6 +172,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
172
172
|
disabled: Schema.optional<Schema.Schema<string, string, never>>;
|
|
173
173
|
readonly: Schema.optional<Schema.Schema<string, string, never>>;
|
|
174
174
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
175
|
+
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
175
176
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
176
177
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
177
178
|
tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
@@ -278,6 +279,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
278
279
|
compatibilityDate: Schema.Literal<["2026-05-28"]>;
|
|
279
280
|
}>;
|
|
280
281
|
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
|
|
282
|
+
export declare function defaults(): Partial<Value>;
|
|
281
283
|
export declare const migrateFrom: ReadonlyArray<MigrateSource>;
|
|
282
284
|
export declare const migrate: MigrateFn;
|
|
283
285
|
export declare function toColumnDef(value: Value, { getLocaleText, $cel, inheritedContext }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
|
|
@@ -189,6 +189,7 @@ export function schema(configure) {
|
|
|
189
189
|
description: "\u8FD4\u56DE `true` \u65F6\u4EC5\u4EE5\u7EAF\u6587\u672C\u5C55\u793A\u5F53\u524D\u9009\u9879\u7684\u6807\u7B7E"
|
|
190
190
|
})),
|
|
191
191
|
enableSorting: display.enableSorting,
|
|
192
|
+
sortKey: display.sortKey,
|
|
192
193
|
size: display.size,
|
|
193
194
|
grow: display.grow,
|
|
194
195
|
tooltip: display.tooltip,
|
|
@@ -203,11 +204,19 @@ export function schema(configure) {
|
|
|
203
204
|
description: "\u4E0B\u62C9\u5355\u9009\u6E32\u67D3\u5668"
|
|
204
205
|
});
|
|
205
206
|
}
|
|
207
|
+
export function defaults() {
|
|
208
|
+
return {
|
|
209
|
+
title: [{ locale: "zh", message: "" }],
|
|
210
|
+
size: 200,
|
|
211
|
+
write: { kind: "binding", binding: "" },
|
|
212
|
+
options: { kind: "static", items: [] }
|
|
213
|
+
};
|
|
214
|
+
}
|
|
206
215
|
export const migrateFrom = [
|
|
207
216
|
{ type: "com.shwfed.table.column.combobox-single", compatibilityDate: "2026-05-26" },
|
|
208
217
|
{ type: "com.shwfed.table.column.combobox-single.remote", compatibilityDate: "2026-05-26" }
|
|
209
218
|
];
|
|
210
|
-
const CARRY = ["id", "groupId", "title", "size", "grow", "tooltip", "enableSorting", "placeholder", "hidden", "disabled", "readonly"];
|
|
219
|
+
const CARRY = ["id", "groupId", "title", "size", "grow", "tooltip", "enableSorting", "sortKey", "placeholder", "hidden", "disabled", "readonly"];
|
|
211
220
|
export const migrate = (prev) => Effect.try({
|
|
212
221
|
try: () => {
|
|
213
222
|
if (!prev || typeof prev !== "object") {
|
|
@@ -44,6 +44,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
44
44
|
readonly data: string;
|
|
45
45
|
readonly request?: string | undefined;
|
|
46
46
|
};
|
|
47
|
+
readonly enableSorting?: boolean | undefined;
|
|
48
|
+
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
47
49
|
readonly nodeKey: string;
|
|
48
50
|
readonly nodeChildren: string;
|
|
49
51
|
readonly nodeLabel: readonly [{
|
|
@@ -53,9 +55,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
55
|
readonly locale: "en" | "ja" | "ko";
|
|
54
56
|
readonly message: string;
|
|
55
57
|
}[]];
|
|
56
|
-
readonly expandAll: boolean;
|
|
57
|
-
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
58
|
-
readonly enableSorting?: boolean | undefined;
|
|
59
58
|
readonly nodeTooltip?: readonly [{
|
|
60
59
|
readonly locale: "zh";
|
|
61
60
|
readonly message: string;
|
|
@@ -64,6 +63,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
64
63
|
readonly message: string;
|
|
65
64
|
}[]] | undefined;
|
|
66
65
|
readonly nodeSelectable?: string | undefined;
|
|
66
|
+
readonly expandAll: boolean;
|
|
67
|
+
readonly sortKey?: string | undefined;
|
|
67
68
|
}) => any;
|
|
68
69
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
69
70
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -107,6 +108,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
107
108
|
readonly data: string;
|
|
108
109
|
readonly request?: string | undefined;
|
|
109
110
|
};
|
|
111
|
+
readonly enableSorting?: boolean | undefined;
|
|
112
|
+
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
110
113
|
readonly nodeKey: string;
|
|
111
114
|
readonly nodeChildren: string;
|
|
112
115
|
readonly nodeLabel: readonly [{
|
|
@@ -116,9 +119,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
116
119
|
readonly locale: "en" | "ja" | "ko";
|
|
117
120
|
readonly message: string;
|
|
118
121
|
}[]];
|
|
119
|
-
readonly expandAll: boolean;
|
|
120
|
-
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
121
|
-
readonly enableSorting?: boolean | undefined;
|
|
122
122
|
readonly nodeTooltip?: readonly [{
|
|
123
123
|
readonly locale: "zh";
|
|
124
124
|
readonly message: string;
|
|
@@ -127,6 +127,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
127
127
|
readonly message: string;
|
|
128
128
|
}[]] | undefined;
|
|
129
129
|
readonly nodeSelectable?: string | undefined;
|
|
130
|
+
readonly expandAll: boolean;
|
|
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;
|
|
@@ -606,14 +606,10 @@ const derivedModel = computed({
|
|
|
606
606
|
<Separator />
|
|
607
607
|
<div class="flex flex-wrap gap-x-8 gap-y-3">
|
|
608
608
|
<Field
|
|
609
|
-
orientation="
|
|
610
|
-
class="w-
|
|
609
|
+
orientation="vertical"
|
|
610
|
+
class="w-full max-w-xs"
|
|
611
611
|
>
|
|
612
|
-
<
|
|
613
|
-
:model-value="value.enableSorting ?? false"
|
|
614
|
-
@update:model-value="(v) => value = { ...value, enableSorting: v }"
|
|
615
|
-
/>
|
|
616
|
-
<FieldLabel class="text-sm text-zinc-600">
|
|
612
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
617
613
|
<template
|
|
618
614
|
v-if="fieldDescription('enableSorting')"
|
|
619
615
|
#tooltip
|
|
@@ -626,6 +622,23 @@ const derivedModel = computed({
|
|
|
626
622
|
</template>
|
|
627
623
|
{{ fieldTitle("enableSorting") }}
|
|
628
624
|
</FieldLabel>
|
|
625
|
+
<InputGroup>
|
|
626
|
+
<InputGroupInput
|
|
627
|
+
:model-value="value.sortKey"
|
|
628
|
+
placeholder="例:created_at"
|
|
629
|
+
@update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
|
|
630
|
+
/>
|
|
631
|
+
<InputGroupAddon align="inline-end">
|
|
632
|
+
<InputGroupButton
|
|
633
|
+
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
634
|
+
size="xs"
|
|
635
|
+
@click="value = { ...value, enableSorting: !value.enableSorting }"
|
|
636
|
+
>
|
|
637
|
+
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
638
|
+
{{ fieldTitle("enableSorting") }}
|
|
639
|
+
</InputGroupButton>
|
|
640
|
+
</InputGroupAddon>
|
|
641
|
+
</InputGroup>
|
|
629
642
|
</Field>
|
|
630
643
|
</div>
|
|
631
644
|
</div>
|