@shwfed/config 2.10.11 → 2.11.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 +1085 -925
- package/dist/module.json +1 -1
- package/dist/preview/assets/{FieldGroup.vue_vue_type_script_setup_true_lang-DSupaUBQ.js → FieldGroup.vue_vue_type_script_setup_true_lang-UfhMyymD.js} +1 -1
- package/dist/preview/assets/{badge-BpMIBZb2.js → badge-CJ9IQ3Jx.js} +1 -1
- package/dist/preview/assets/{config-CM4nX_7y.js → config--Vx4fL61.js} +1 -1
- package/dist/preview/assets/{config-CujkaO8S.js → config-5PPug5mk.js} +1 -1
- package/dist/preview/assets/{config-c2iiXckz.js → config-7V1qHjUk.js} +1 -1
- package/dist/preview/assets/{config-DrkDnICQ.js → config-BYktCefJ.js} +1 -1
- package/dist/preview/assets/{config-Cc1ThF9T.js → config-BeRYF_cz.js} +1 -1
- package/dist/preview/assets/{config-DbtYnaaf.js → config-BldsYfGM.js} +1 -1
- package/dist/preview/assets/{config-BCCT-UCw.js → config-CQrDCzYN.js} +1 -1
- package/dist/preview/assets/{config-CY9L8__h.js → config-C_g-FYCR.js} +1 -1
- package/dist/preview/assets/{config-Bz643_RE.js → config-DIsAIc7H.js} +1 -1
- package/dist/preview/assets/{config-CNJS9Ncm.js → config-DPX7vGqV.js} +1 -1
- package/dist/preview/assets/{config-C7nJ8jl6.js → config-DpLMetys.js} +1 -1
- package/dist/preview/assets/{config-Bx4-IdW5.js → config-IMd4FZi8.js} +1 -1
- package/dist/preview/assets/{config-v7UFMF25.js → config-N-FdgfwK.js} +1 -1
- package/dist/preview/assets/{config-agH4hNej.js → config-uUF-UHPt.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-B1dZHF9Z.js → definition.vue_vue_type_script_setup_true_lang-B_PKfe3G.js} +1 -1
- package/dist/preview/assets/index-8Ph-sFDI.css +1 -0
- package/dist/preview/assets/index-BCl1NN6k.js +763 -0
- package/dist/preview/assets/index-Core7vRW.js +1 -0
- package/dist/preview/assets/{index-B10aTz32.js → index-DKWp47QP.js} +1 -1
- package/dist/preview/assets/{item-DxWeqOxe.js → item-XsW7swFt.js} +1 -1
- package/dist/preview/assets/{runtime-CeItNJdF.js → runtime-B-ABO0r0.js} +1 -1
- package/dist/preview/assets/{runtime-C6oMTKIZ.js → runtime-BeHohaOZ.js} +1 -1
- package/dist/preview/assets/{runtime-rpKOBs2Q.js → runtime-BiFFwOIl.js} +1 -1
- package/dist/preview/assets/{runtime-BO_Ak4ly.js → runtime-ByArW-jJ.js} +1 -1
- package/dist/preview/assets/{runtime-3VPnK4Ve.js → runtime-CpVTGNFZ.js} +1 -1
- package/dist/preview/assets/{runtime-DQK6Vajf.js → runtime-DQ1TnQ7n.js} +1 -1
- package/dist/preview/assets/{runtime-P58D1JCj.js → runtime-DY7hr7v1.js} +1 -1
- package/dist/preview/assets/{runtime-BcWQ55Ub.js → runtime-Dn172S7t.js} +1 -1
- package/dist/preview/assets/{runtime-DwgCzoDf.js → runtime-JxBzvGnw.js} +1 -1
- package/dist/preview/assets/{runtime-D6jswLOt.js → runtime-bq0hmEXY.js} +1 -1
- package/dist/preview/assets/{schema-meta-BtDKldOy.js → schema-meta-CZ9yXnsa.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/runtime.vue +23 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/config.vue +30 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue +30 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.js +7 -4
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue +30 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue +30 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +2 -1
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.js +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +30 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +2 -1
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/config.vue +143 -35
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/runtime.vue +35 -9
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +136 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +20 -6
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue +67 -32
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue +6 -9
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +2 -5
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/config.vue +148 -33
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/runtime.vue +35 -9
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +136 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +20 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.js +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 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.js +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 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.js +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 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.js +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.js +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.js +1 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue +61 -22
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/runtime.vue +6 -9
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.js +3 -4
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue +61 -22
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/runtime.vue +6 -9
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.js +3 -4
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue +67 -23
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/runtime.vue +6 -9
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.js +2 -4
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue +67 -23
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/runtime.vue +6 -9
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.js +2 -4
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.vue +67 -32
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/runtime.vue +14 -8
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +2 -5
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/config.vue +752 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/runtime.vue +149 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.d.ts +90 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.js +119 -0
- package/dist/runtime/components/table/index.vue +46 -7
- package/dist/runtime/components/table/utils/runtime.d.ts +1 -0
- package/dist/runtime/components/table/utils/runtime.js +5 -0
- package/dist/runtime/components/table/utils/shared.d.ts +3 -1
- package/dist/runtime/components/table/utils/shared.js +17 -5
- package/dist/runtime/components/ui/date-picker/DatePicker.d.vue.ts +1 -0
- package/dist/runtime/components/ui/date-picker/DatePicker.vue +3 -0
- package/dist/runtime/components/ui/date-picker/DatePicker.vue.d.ts +1 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePicker.d.vue.ts +1 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePicker.vue +2 -0
- package/dist/runtime/components/ui/date-range-picker/DateRangePicker.vue.d.ts +1 -0
- package/package.json +1 -1
- package/dist/preview/assets/index-Cc4BT5dc.css +0 -1
- package/dist/preview/assets/index-DdySlgoq.js +0 -763
- package/dist/preview/assets/index-j5Pri4vN.js +0 -1
|
@@ -9,6 +9,9 @@ export declare const metadata: {
|
|
|
9
9
|
readonly icon: "fluent:text-field-20-regular";
|
|
10
10
|
};
|
|
11
11
|
export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
|
|
12
|
+
align: Schema.optionalWith<Schema.Literal<["left", "center", "right"]>, {
|
|
13
|
+
default: () => "left";
|
|
14
|
+
}>;
|
|
12
15
|
placeholder: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
13
16
|
locale: Schema.Literal<["zh"]>;
|
|
14
17
|
message: Schema.SchemaClass<string, string, never>;
|
|
@@ -16,13 +19,144 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
16
19
|
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
17
20
|
message: Schema.SchemaClass<string, string, never>;
|
|
18
21
|
}>]>>;
|
|
19
|
-
hidden: Schema.optional<Schema.Schema<string, string, never>>;
|
|
20
22
|
disabled: Schema.optional<Schema.Schema<string, string, never>>;
|
|
21
23
|
readonly: Schema.optional<Schema.Schema<string, string, never>>;
|
|
22
24
|
derived: Schema.optional<Schema.Struct<{
|
|
23
25
|
mode: Schema.Literal<["formula", "prefill"]>;
|
|
24
26
|
expression: Schema.Schema<string, string, never>;
|
|
25
27
|
}>>;
|
|
28
|
+
addon: Schema.optional<Schema.Struct<{
|
|
29
|
+
groups: Schema.optionalWith<Schema.Array$<Schema.Struct<{
|
|
30
|
+
id: Schema.refine<string, typeof Schema.String>;
|
|
31
|
+
variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
|
|
32
|
+
}>>, {
|
|
33
|
+
default: () => never[];
|
|
34
|
+
}>;
|
|
35
|
+
items: Schema.optionalWith<Schema.Array$<Schema.Schema<import("../../../../actions/schema.js").RegistryItemValue | {
|
|
36
|
+
readonly disabled?: string | undefined;
|
|
37
|
+
readonly id: string;
|
|
38
|
+
readonly title: readonly [{
|
|
39
|
+
readonly locale: "zh";
|
|
40
|
+
readonly message: string;
|
|
41
|
+
}, ...{
|
|
42
|
+
readonly locale: "en" | "ja" | "ko";
|
|
43
|
+
readonly message: string;
|
|
44
|
+
}[]];
|
|
45
|
+
readonly icon?: string | undefined;
|
|
46
|
+
readonly hidden?: string | undefined;
|
|
47
|
+
readonly tooltip?: readonly [{
|
|
48
|
+
readonly locale: "zh";
|
|
49
|
+
readonly message: string;
|
|
50
|
+
}, ...{
|
|
51
|
+
readonly locale: "en" | "ja" | "ko";
|
|
52
|
+
readonly message: string;
|
|
53
|
+
}[]] | undefined;
|
|
54
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
55
|
+
readonly action?: any;
|
|
56
|
+
readonly groupId: string;
|
|
57
|
+
readonly hideTitle?: boolean | undefined;
|
|
58
|
+
} | {
|
|
59
|
+
readonly id: string;
|
|
60
|
+
readonly title: readonly [{
|
|
61
|
+
readonly locale: "zh";
|
|
62
|
+
readonly message: string;
|
|
63
|
+
}, ...{
|
|
64
|
+
readonly locale: "en" | "ja" | "ko";
|
|
65
|
+
readonly message: string;
|
|
66
|
+
}[]];
|
|
67
|
+
readonly icon?: string | undefined;
|
|
68
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
69
|
+
readonly disabled?: string | undefined;
|
|
70
|
+
readonly id: string;
|
|
71
|
+
readonly title: readonly [{
|
|
72
|
+
readonly locale: "zh";
|
|
73
|
+
readonly message: string;
|
|
74
|
+
}, ...{
|
|
75
|
+
readonly locale: "en" | "ja" | "ko";
|
|
76
|
+
readonly message: string;
|
|
77
|
+
}[]];
|
|
78
|
+
readonly icon?: string | undefined;
|
|
79
|
+
readonly hidden?: string | undefined;
|
|
80
|
+
readonly tooltip?: readonly [{
|
|
81
|
+
readonly locale: "zh";
|
|
82
|
+
readonly message: string;
|
|
83
|
+
}, ...{
|
|
84
|
+
readonly locale: "en" | "ja" | "ko";
|
|
85
|
+
readonly message: string;
|
|
86
|
+
}[]] | undefined;
|
|
87
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
88
|
+
readonly action?: any;
|
|
89
|
+
})[];
|
|
90
|
+
readonly groupId: string;
|
|
91
|
+
readonly hideTitle?: boolean | undefined;
|
|
92
|
+
}, import("../../../../actions/schema.js").RegistryItemValue | {
|
|
93
|
+
readonly id: string;
|
|
94
|
+
readonly title: readonly [{
|
|
95
|
+
readonly locale: "zh";
|
|
96
|
+
readonly message: string;
|
|
97
|
+
}, ...{
|
|
98
|
+
readonly locale: "en" | "ja" | "ko";
|
|
99
|
+
readonly message: string;
|
|
100
|
+
}[]];
|
|
101
|
+
readonly groupId: string;
|
|
102
|
+
readonly disabled?: string | undefined;
|
|
103
|
+
readonly icon?: string | undefined;
|
|
104
|
+
readonly hidden?: string | undefined;
|
|
105
|
+
readonly tooltip?: readonly [{
|
|
106
|
+
readonly locale: "zh";
|
|
107
|
+
readonly message: string;
|
|
108
|
+
}, ...{
|
|
109
|
+
readonly locale: "en" | "ja" | "ko";
|
|
110
|
+
readonly message: string;
|
|
111
|
+
}[]] | undefined;
|
|
112
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
113
|
+
readonly action?: any;
|
|
114
|
+
readonly hideTitle?: boolean | undefined;
|
|
115
|
+
} | {
|
|
116
|
+
readonly id: string;
|
|
117
|
+
readonly title: readonly [{
|
|
118
|
+
readonly locale: "zh";
|
|
119
|
+
readonly message: string;
|
|
120
|
+
}, ...{
|
|
121
|
+
readonly locale: "en" | "ja" | "ko";
|
|
122
|
+
readonly message: string;
|
|
123
|
+
}[]];
|
|
124
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
125
|
+
readonly id: string;
|
|
126
|
+
readonly title: readonly [{
|
|
127
|
+
readonly locale: "zh";
|
|
128
|
+
readonly message: string;
|
|
129
|
+
}, ...{
|
|
130
|
+
readonly locale: "en" | "ja" | "ko";
|
|
131
|
+
readonly message: string;
|
|
132
|
+
}[]];
|
|
133
|
+
readonly disabled?: string | undefined;
|
|
134
|
+
readonly icon?: string | undefined;
|
|
135
|
+
readonly hidden?: string | undefined;
|
|
136
|
+
readonly tooltip?: readonly [{
|
|
137
|
+
readonly locale: "zh";
|
|
138
|
+
readonly message: string;
|
|
139
|
+
}, ...{
|
|
140
|
+
readonly locale: "en" | "ja" | "ko";
|
|
141
|
+
readonly message: string;
|
|
142
|
+
}[]] | undefined;
|
|
143
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
144
|
+
readonly action?: any;
|
|
145
|
+
})[];
|
|
146
|
+
readonly groupId: string;
|
|
147
|
+
readonly icon?: string | undefined;
|
|
148
|
+
readonly hideTitle?: boolean | undefined;
|
|
149
|
+
}, never>>, {
|
|
150
|
+
default: () => never[];
|
|
151
|
+
}>;
|
|
152
|
+
size: Schema.optionalWith<Schema.Literal<["default", "sm", "xs"]>, {
|
|
153
|
+
default: () => "default";
|
|
154
|
+
}>;
|
|
155
|
+
gap: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
156
|
+
default: () => number;
|
|
157
|
+
}>;
|
|
158
|
+
style: Schema.optional<typeof Schema.String>;
|
|
159
|
+
}>>;
|
|
26
160
|
title: Schema.TupleType<readonly [Schema.Struct<{
|
|
27
161
|
locale: Schema.Literal<["zh"]>;
|
|
28
162
|
message: Schema.SchemaClass<string, string, never>;
|
|
@@ -42,6 +176,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
42
176
|
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
43
177
|
message: Schema.SchemaClass<string, string, never>;
|
|
44
178
|
}>]>>;
|
|
179
|
+
hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
45
180
|
id: Schema.refine<string, typeof Schema.String>;
|
|
46
181
|
groupId: Schema.optional<typeof Schema.UUID>;
|
|
47
182
|
type: Schema.Literal<["com.shwfed.table.column.text-input"]>;
|
|
@@ -1,27 +1,40 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { getProperty } from "dot-prop";
|
|
3
3
|
import { Locale } from "../../../../../share/locale.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ActionSchemaFields } from "../../../../actions/schema.js";
|
|
5
|
+
import { Align, CelRowAccess, derivedRowField, editableColumnFields, editableHeader, registerRowVariablesIfAbsent } from "../../../utils/shared.js";
|
|
5
6
|
export const type = "com.shwfed.table.column.text-input";
|
|
6
7
|
export const compatibilityDate = "2026-05-20";
|
|
7
8
|
export const metadata = {
|
|
8
9
|
name: "\u6587\u672C\u8F93\u5165",
|
|
9
10
|
icon: "fluent:text-field-20-regular"
|
|
10
11
|
};
|
|
12
|
+
function AddonActions(configure) {
|
|
13
|
+
const configureWithRow = (env) => {
|
|
14
|
+
configure(env);
|
|
15
|
+
registerRowVariablesIfAbsent(env);
|
|
16
|
+
};
|
|
17
|
+
const { groups, items, ...rest } = ActionSchemaFields(configureWithRow).fields;
|
|
18
|
+
return Schema.Struct({
|
|
19
|
+
...rest,
|
|
20
|
+
groups: Schema.optionalWith(groups, { default: () => [] }),
|
|
21
|
+
items: Schema.optionalWith(items, { default: () => [] })
|
|
22
|
+
}).annotations({
|
|
23
|
+
title: "\u8F93\u5165\u6846\u5185\u6309\u94AE",
|
|
24
|
+
description: "\u5728\u8F93\u5165\u6846\u53F3\u4FA7\u5185\u5D4C\u4E00\u7EC4\u64CD\u4F5C\u6309\u94AE"
|
|
25
|
+
});
|
|
26
|
+
}
|
|
11
27
|
export function schema(configure) {
|
|
12
28
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
13
29
|
return Schema.Struct({
|
|
14
30
|
type: Schema.Literal(type),
|
|
15
31
|
compatibilityDate: Schema.Literal(compatibilityDate),
|
|
16
32
|
...editableColumnFields(),
|
|
33
|
+
align: Schema.optionalWith(Align.annotations({ title: "\u5BF9\u9F50" }), { default: () => "left" }),
|
|
17
34
|
placeholder: Schema.optional(Locale.annotations({
|
|
18
35
|
title: "\u5360\u4F4D\u7B26",
|
|
19
36
|
description: "\u5355\u5143\u683C\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u63D0\u793A\u6587\u672C"
|
|
20
37
|
})),
|
|
21
|
-
hidden: Schema.optional(CelBool.annotations({
|
|
22
|
-
title: "\u9690\u85CF\u6761\u4EF6",
|
|
23
|
-
description: "\u8FD4\u56DE `true` \u65F6\u8BE5\u884C\u7684\u8F93\u5165\u6846\u4E0D\u6E32\u67D3\uFF08\u5176\u4F59\u884C\u4E0D\u53D7\u5F71\u54CD\uFF09"
|
|
24
|
-
})),
|
|
25
38
|
disabled: Schema.optional(CelBool.annotations({
|
|
26
39
|
title: "\u7981\u7528\u6761\u4EF6",
|
|
27
40
|
description: "\u8FD4\u56DE `true` \u65F6\u8F93\u5165\u6846\u4ECD\u7136\u6E32\u67D3\u4F46\u4E0D\u53EF\u7F16\u8F91"
|
|
@@ -30,7 +43,8 @@ export function schema(configure) {
|
|
|
30
43
|
title: "\u53EA\u8BFB\u6761\u4EF6",
|
|
31
44
|
description: "\u8FD4\u56DE `true` \u65F6\u4EC5\u4EE5\u7EAF\u6587\u672C\u5C55\u793A\u5F53\u524D\u503C"
|
|
32
45
|
})),
|
|
33
|
-
derived: derivedRowField(configure, "string")
|
|
46
|
+
derived: derivedRowField(configure, "string"),
|
|
47
|
+
addon: Schema.optional(AddonActions(configure))
|
|
34
48
|
}).annotations({ title: "TextInputRenderer", description: "\u6587\u672C\u8F93\u5165\u6E32\u67D3\u5668\uFF08\u53EF\u7F16\u8F91\uFF09" });
|
|
35
49
|
}
|
|
36
50
|
export function defaults() {
|
|
@@ -53,7 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
53
|
readonly locale: "en" | "ja" | "ko";
|
|
54
54
|
readonly message: string;
|
|
55
55
|
}[]];
|
|
56
|
-
readonly accessor
|
|
56
|
+
readonly accessor?: string | undefined;
|
|
57
57
|
readonly sortKey?: string | undefined;
|
|
58
58
|
readonly successMessage?: string | undefined;
|
|
59
59
|
}) => any;
|
|
@@ -108,7 +108,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
readonly locale: "en" | "ja" | "ko";
|
|
109
109
|
readonly message: string;
|
|
110
110
|
}[]];
|
|
111
|
-
readonly accessor
|
|
111
|
+
readonly accessor?: string | undefined;
|
|
112
112
|
readonly sortKey?: string | undefined;
|
|
113
113
|
readonly successMessage?: string | undefined;
|
|
114
114
|
}) => any) | undefined;
|
|
@@ -53,7 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
53
|
readonly locale: "en" | "ja" | "ko";
|
|
54
54
|
readonly message: string;
|
|
55
55
|
}[]];
|
|
56
|
-
readonly accessor
|
|
56
|
+
readonly accessor?: string | undefined;
|
|
57
57
|
readonly sortKey?: string | undefined;
|
|
58
58
|
readonly successMessage?: string | undefined;
|
|
59
59
|
}) => any;
|
|
@@ -108,7 +108,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
readonly locale: "en" | "ja" | "ko";
|
|
109
109
|
readonly message: string;
|
|
110
110
|
}[]];
|
|
111
|
-
readonly accessor
|
|
111
|
+
readonly accessor?: string | undefined;
|
|
112
112
|
readonly sortKey?: string | undefined;
|
|
113
113
|
readonly successMessage?: string | undefined;
|
|
114
114
|
}) => any) | undefined;
|
|
@@ -68,7 +68,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
68
68
|
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
69
69
|
message: Schema.SchemaClass<string, string, never>;
|
|
70
70
|
}>]>;
|
|
71
|
-
accessor: Schema.Schema<string, string, never
|
|
71
|
+
accessor: Schema.optional<Schema.Schema<string, string, never>>;
|
|
72
72
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
73
73
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
74
74
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
@@ -129,6 +129,7 @@ export function toColumnDef(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
129
129
|
return {
|
|
130
130
|
header: editableHeader(getLocaleText(value.title)),
|
|
131
131
|
accessorFn: (row, index) => {
|
|
132
|
+
if (!value.accessor) return void 0;
|
|
132
133
|
try {
|
|
133
134
|
return Effect.runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
134
135
|
} catch (e) {
|
|
@@ -67,7 +67,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
67
67
|
}[]] | undefined;
|
|
68
68
|
readonly readonly?: string | undefined;
|
|
69
69
|
readonly enableSorting?: boolean | undefined;
|
|
70
|
-
readonly accessor
|
|
70
|
+
readonly accessor?: string | undefined;
|
|
71
71
|
readonly sortKey?: string | undefined;
|
|
72
72
|
readonly successMessage?: string | undefined;
|
|
73
73
|
}) => any;
|
|
@@ -136,7 +136,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
136
136
|
}[]] | undefined;
|
|
137
137
|
readonly readonly?: string | undefined;
|
|
138
138
|
readonly enableSorting?: boolean | undefined;
|
|
139
|
-
readonly accessor
|
|
139
|
+
readonly accessor?: string | undefined;
|
|
140
140
|
readonly sortKey?: string | undefined;
|
|
141
141
|
readonly successMessage?: string | undefined;
|
|
142
142
|
}) => any) | undefined;
|
|
@@ -67,7 +67,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
67
67
|
}[]] | undefined;
|
|
68
68
|
readonly readonly?: string | undefined;
|
|
69
69
|
readonly enableSorting?: boolean | undefined;
|
|
70
|
-
readonly accessor
|
|
70
|
+
readonly accessor?: string | undefined;
|
|
71
71
|
readonly sortKey?: string | undefined;
|
|
72
72
|
readonly successMessage?: string | undefined;
|
|
73
73
|
}) => any;
|
|
@@ -136,7 +136,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
136
136
|
}[]] | undefined;
|
|
137
137
|
readonly readonly?: string | undefined;
|
|
138
138
|
readonly enableSorting?: boolean | undefined;
|
|
139
|
-
readonly accessor
|
|
139
|
+
readonly accessor?: string | undefined;
|
|
140
140
|
readonly sortKey?: string | undefined;
|
|
141
141
|
readonly successMessage?: string | undefined;
|
|
142
142
|
}) => any) | undefined;
|
|
@@ -109,7 +109,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
109
109
|
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
110
110
|
message: Schema.SchemaClass<string, string, never>;
|
|
111
111
|
}>]>;
|
|
112
|
-
accessor: Schema.Schema<string, string, never
|
|
112
|
+
accessor: Schema.optional<Schema.Schema<string, string, never>>;
|
|
113
113
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
114
114
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
115
115
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
@@ -107,6 +107,7 @@ export function toColumnDef(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
107
107
|
return {
|
|
108
108
|
header: editableHeader(getLocaleText(value.title)),
|
|
109
109
|
accessorFn: (row, index) => {
|
|
110
|
+
if (!value.accessor) return void 0;
|
|
110
111
|
try {
|
|
111
112
|
return Effect.runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
112
113
|
} catch (e) {
|
|
@@ -53,7 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
53
|
readonly locale: "en" | "ja" | "ko";
|
|
54
54
|
readonly message: string;
|
|
55
55
|
}[]];
|
|
56
|
-
readonly accessor
|
|
56
|
+
readonly accessor?: string | undefined;
|
|
57
57
|
readonly sortKey?: string | undefined;
|
|
58
58
|
readonly successMessage?: string | undefined;
|
|
59
59
|
}) => any;
|
|
@@ -108,7 +108,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
readonly locale: "en" | "ja" | "ko";
|
|
109
109
|
readonly message: string;
|
|
110
110
|
}[]];
|
|
111
|
-
readonly accessor
|
|
111
|
+
readonly accessor?: string | undefined;
|
|
112
112
|
readonly sortKey?: string | undefined;
|
|
113
113
|
readonly successMessage?: string | undefined;
|
|
114
114
|
}) => any) | undefined;
|
|
@@ -53,7 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
53
|
readonly locale: "en" | "ja" | "ko";
|
|
54
54
|
readonly message: string;
|
|
55
55
|
}[]];
|
|
56
|
-
readonly accessor
|
|
56
|
+
readonly accessor?: string | undefined;
|
|
57
57
|
readonly sortKey?: string | undefined;
|
|
58
58
|
readonly successMessage?: string | undefined;
|
|
59
59
|
}) => any;
|
|
@@ -108,7 +108,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
readonly locale: "en" | "ja" | "ko";
|
|
109
109
|
readonly message: string;
|
|
110
110
|
}[]];
|
|
111
|
-
readonly accessor
|
|
111
|
+
readonly accessor?: string | undefined;
|
|
112
112
|
readonly sortKey?: string | undefined;
|
|
113
113
|
readonly successMessage?: string | undefined;
|
|
114
114
|
}) => any) | undefined;
|
|
@@ -68,7 +68,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
68
68
|
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
69
69
|
message: Schema.SchemaClass<string, string, never>;
|
|
70
70
|
}>]>;
|
|
71
|
-
accessor: Schema.Schema<string, string, never
|
|
71
|
+
accessor: Schema.optional<Schema.Schema<string, string, never>>;
|
|
72
72
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
73
73
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
74
74
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
@@ -129,6 +129,7 @@ export function toColumnDef(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
129
129
|
return {
|
|
130
130
|
header: editableHeader(getLocaleText(value.title)),
|
|
131
131
|
accessorFn: (row, index) => {
|
|
132
|
+
if (!value.accessor) return void 0;
|
|
132
133
|
try {
|
|
133
134
|
return Effect.runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
134
135
|
} catch (e) {
|
|
@@ -67,7 +67,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
67
67
|
}[]] | undefined;
|
|
68
68
|
readonly readonly?: string | undefined;
|
|
69
69
|
readonly enableSorting?: boolean | undefined;
|
|
70
|
-
readonly accessor
|
|
70
|
+
readonly accessor?: string | undefined;
|
|
71
71
|
readonly sortKey?: string | undefined;
|
|
72
72
|
readonly successMessage?: string | undefined;
|
|
73
73
|
}) => any;
|
|
@@ -136,7 +136,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
136
136
|
}[]] | undefined;
|
|
137
137
|
readonly readonly?: string | undefined;
|
|
138
138
|
readonly enableSorting?: boolean | undefined;
|
|
139
|
-
readonly accessor
|
|
139
|
+
readonly accessor?: string | undefined;
|
|
140
140
|
readonly sortKey?: string | undefined;
|
|
141
141
|
readonly successMessage?: string | undefined;
|
|
142
142
|
}) => any) | undefined;
|
|
@@ -67,7 +67,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
67
67
|
}[]] | undefined;
|
|
68
68
|
readonly readonly?: string | undefined;
|
|
69
69
|
readonly enableSorting?: boolean | undefined;
|
|
70
|
-
readonly accessor
|
|
70
|
+
readonly accessor?: string | undefined;
|
|
71
71
|
readonly sortKey?: string | undefined;
|
|
72
72
|
readonly successMessage?: string | undefined;
|
|
73
73
|
}) => any;
|
|
@@ -136,7 +136,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
136
136
|
}[]] | undefined;
|
|
137
137
|
readonly readonly?: string | undefined;
|
|
138
138
|
readonly enableSorting?: boolean | undefined;
|
|
139
|
-
readonly accessor
|
|
139
|
+
readonly accessor?: string | undefined;
|
|
140
140
|
readonly sortKey?: string | undefined;
|
|
141
141
|
readonly successMessage?: string | undefined;
|
|
142
142
|
}) => any) | undefined;
|
|
@@ -109,7 +109,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
109
109
|
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
110
110
|
message: Schema.SchemaClass<string, string, never>;
|
|
111
111
|
}>]>;
|
|
112
|
-
accessor: Schema.Schema<string, string, never
|
|
112
|
+
accessor: Schema.optional<Schema.Schema<string, string, never>>;
|
|
113
113
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
114
114
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
115
115
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
@@ -107,6 +107,7 @@ export function toColumnDef(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
107
107
|
return {
|
|
108
108
|
header: editableHeader(getLocaleText(value.title)),
|
|
109
109
|
accessorFn: (row, index) => {
|
|
110
|
+
if (!value.accessor) return void 0;
|
|
110
111
|
try {
|
|
111
112
|
return Effect.runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
112
113
|
} catch (e) {
|
|
@@ -82,7 +82,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
82
82
|
};
|
|
83
83
|
}[];
|
|
84
84
|
};
|
|
85
|
-
readonly accessor
|
|
85
|
+
readonly accessor?: string | undefined;
|
|
86
86
|
readonly sortKey?: string | undefined;
|
|
87
87
|
readonly successMessage?: string | undefined;
|
|
88
88
|
}) => any;
|
|
@@ -166,7 +166,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
166
166
|
};
|
|
167
167
|
}[];
|
|
168
168
|
};
|
|
169
|
-
readonly accessor
|
|
169
|
+
readonly accessor?: string | undefined;
|
|
170
170
|
readonly sortKey?: string | undefined;
|
|
171
171
|
readonly successMessage?: string | undefined;
|
|
172
172
|
}) => any) | undefined;
|
|
@@ -82,7 +82,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
82
82
|
};
|
|
83
83
|
}[];
|
|
84
84
|
};
|
|
85
|
-
readonly accessor
|
|
85
|
+
readonly accessor?: string | undefined;
|
|
86
86
|
readonly sortKey?: string | undefined;
|
|
87
87
|
readonly successMessage?: string | undefined;
|
|
88
88
|
}) => any;
|
|
@@ -166,7 +166,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
166
166
|
};
|
|
167
167
|
}[];
|
|
168
168
|
};
|
|
169
|
-
readonly accessor
|
|
169
|
+
readonly accessor?: string | undefined;
|
|
170
170
|
readonly sortKey?: string | undefined;
|
|
171
171
|
readonly successMessage?: string | undefined;
|
|
172
172
|
}) => any) | undefined;
|
|
@@ -234,7 +234,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
234
234
|
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
235
235
|
message: Schema.SchemaClass<string, string, never>;
|
|
236
236
|
}>]>;
|
|
237
|
-
accessor: Schema.Schema<string, string, never
|
|
237
|
+
accessor: Schema.optional<Schema.Schema<string, string, never>>;
|
|
238
238
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
239
239
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
240
240
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
@@ -212,6 +212,7 @@ export function toColumnDef(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
212
212
|
return {
|
|
213
213
|
header: editableHeader(getLocaleText(value.title)),
|
|
214
214
|
accessorFn: (row, index) => {
|
|
215
|
+
if (!value.accessor) return void 0;
|
|
215
216
|
try {
|
|
216
217
|
return Effect.runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
217
218
|
} catch (e) {
|
|
@@ -82,7 +82,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
82
82
|
};
|
|
83
83
|
}[];
|
|
84
84
|
};
|
|
85
|
-
readonly accessor
|
|
85
|
+
readonly accessor?: string | undefined;
|
|
86
86
|
readonly sortKey?: string | undefined;
|
|
87
87
|
readonly successMessage?: string | undefined;
|
|
88
88
|
}) => any;
|
|
@@ -166,7 +166,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
166
166
|
};
|
|
167
167
|
}[];
|
|
168
168
|
};
|
|
169
|
-
readonly accessor
|
|
169
|
+
readonly accessor?: string | undefined;
|
|
170
170
|
readonly sortKey?: string | undefined;
|
|
171
171
|
readonly successMessage?: string | undefined;
|
|
172
172
|
}) => any) | undefined;
|
|
@@ -82,7 +82,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
82
82
|
};
|
|
83
83
|
}[];
|
|
84
84
|
};
|
|
85
|
-
readonly accessor
|
|
85
|
+
readonly accessor?: string | undefined;
|
|
86
86
|
readonly sortKey?: string | undefined;
|
|
87
87
|
readonly successMessage?: string | undefined;
|
|
88
88
|
}) => any;
|
|
@@ -166,7 +166,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
166
166
|
};
|
|
167
167
|
}[];
|
|
168
168
|
};
|
|
169
|
-
readonly accessor
|
|
169
|
+
readonly accessor?: string | undefined;
|
|
170
170
|
readonly sortKey?: string | undefined;
|
|
171
171
|
readonly successMessage?: string | undefined;
|
|
172
172
|
}) => any) | undefined;
|
|
@@ -234,7 +234,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
234
234
|
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
235
235
|
message: Schema.SchemaClass<string, string, never>;
|
|
236
236
|
}>]>;
|
|
237
|
-
accessor: Schema.Schema<string, string, never
|
|
237
|
+
accessor: Schema.optional<Schema.Schema<string, string, never>>;
|
|
238
238
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
239
239
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
240
240
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
@@ -212,6 +212,7 @@ export function toColumnDef(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
212
212
|
return {
|
|
213
213
|
header: editableHeader(getLocaleText(value.title)),
|
|
214
214
|
accessorFn: (row, index) => {
|
|
215
|
+
if (!value.accessor) return void 0;
|
|
215
216
|
try {
|
|
216
217
|
return Effect.runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
217
218
|
} catch (e) {
|
|
@@ -15,7 +15,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
15
15
|
readonly locale: "en" | "ja" | "ko";
|
|
16
16
|
readonly message: string;
|
|
17
17
|
}[]];
|
|
18
|
-
readonly hidden?:
|
|
18
|
+
readonly hidden?: boolean | undefined;
|
|
19
19
|
readonly tooltip?: readonly [{
|
|
20
20
|
readonly locale: "zh";
|
|
21
21
|
readonly message: string;
|
|
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
23
23
|
readonly locale: "en" | "ja" | "ko";
|
|
24
24
|
readonly message: string;
|
|
25
25
|
}[]] | undefined;
|
|
26
|
+
readonly align: "center" | "left" | "right";
|
|
26
27
|
readonly compatibilityDate: "2026-06-14";
|
|
27
28
|
readonly grow?: boolean | undefined;
|
|
28
29
|
readonly groupId?: string | undefined;
|
|
@@ -101,7 +102,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
101
102
|
readonly locale: "en" | "ja" | "ko";
|
|
102
103
|
readonly message: string;
|
|
103
104
|
}[]];
|
|
104
|
-
readonly hidden?:
|
|
105
|
+
readonly hidden?: boolean | undefined;
|
|
105
106
|
readonly tooltip?: readonly [{
|
|
106
107
|
readonly locale: "zh";
|
|
107
108
|
readonly message: string;
|
|
@@ -109,6 +110,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
109
110
|
readonly locale: "en" | "ja" | "ko";
|
|
110
111
|
readonly message: string;
|
|
111
112
|
}[]] | undefined;
|
|
113
|
+
readonly align: "center" | "left" | "right";
|
|
112
114
|
readonly compatibilityDate: "2026-06-14";
|
|
113
115
|
readonly grow?: boolean | undefined;
|
|
114
116
|
readonly groupId?: string | undefined;
|