@shwfed/config 2.5.0 → 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 +135 -21
- package/dist/module.json +1 -1
- package/dist/preview/assets/{config-C_bBX0wD.js → config-2hrRmW-I.js} +1 -1
- package/dist/preview/assets/{config-BkytEQN5.js → config-BfzthOw9.js} +1 -1
- package/dist/preview/assets/{config-Dx0zHfGt.js → config-BsgSoDjY.js} +1 -1
- package/dist/preview/assets/{config-dwcdYHd4.js → config-CaLzEMyt.js} +1 -1
- package/dist/preview/assets/{config-E-DM6b5t.js → config-DKtPKn2s.js} +1 -1
- package/dist/preview/assets/{config-DYL6kHr3.js → config-DdgZWox9.js} +1 -1
- package/dist/preview/assets/{config-PjseWUbC.js → config-h_LH1CT_.js} +1 -1
- package/dist/preview/assets/{config-Cbn8o9BY.js → config-nsiwkAq8.js} +1 -1
- package/dist/preview/assets/{config-CK011_jJ.js → config-zxVo1EOM.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-uJFJXxli.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-x-77enex.js → index-C5dK4QAf.js} +102 -102
- package/dist/preview/assets/{index-7MVXgV5n.css → index-nvAUAYGM.css} +1 -1
- package/dist/preview/assets/{runtime-D4_9FCLy.js → runtime-527oKJb4.js} +1 -1
- package/dist/preview/assets/{runtime-ZQryOEKm.js → runtime-BLhH77F7.js} +1 -1
- package/dist/preview/assets/{runtime-DJHpCLnr.js → runtime-BRWnAaFs.js} +1 -1
- package/dist/preview/assets/{runtime-CHLboM_z.js → runtime-CEXA5ttw.js} +1 -1
- package/dist/preview/assets/{runtime-DKq86fZU.js → runtime-CZZWuLu9.js} +1 -1
- package/dist/preview/assets/{runtime-BRMGkqSr.js → runtime-DOLtY37Y.js} +1 -1
- package/dist/preview/assets/{runtime-CeHdesjP.js → runtime-DZqXButD.js} +1 -1
- package/dist/preview/assets/{runtime-DHBTDws7.js → runtime-MJo092Ed.js} +1 -1
- package/dist/preview/assets/{runtime-DjpjaNec.js → runtime-i3-6DCWP.js} +1 -1
- package/dist/preview/index.html +2 -2
- 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/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/schema.d.ts +1 -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 +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.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 +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.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 +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-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 +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-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 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue +1 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue +1 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.js +8 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.js +8 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +6 -6
- 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 +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -4
- 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 +4 -58
- package/dist/runtime/components/table/utils/resolve.d.ts +14 -0
- package/dist/runtime/components/table/utils/resolve.js +2 -1
- package/package.json +1 -1
- package/dist/preview/assets/index-CmPiZG_4.js +0 -1
|
@@ -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,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
88
89
|
readonly keywords?: readonly string[] | undefined;
|
|
89
90
|
}[];
|
|
90
91
|
};
|
|
91
|
-
readonly enableSorting?: boolean | undefined;
|
|
92
92
|
readonly sortKey?: string | undefined;
|
|
93
93
|
}) => any;
|
|
94
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -132,10 +132,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
132
132
|
readonly target: string;
|
|
133
133
|
readonly operation: string;
|
|
134
134
|
}[] | undefined;
|
|
135
|
-
readonly accessor: string;
|
|
136
135
|
readonly successMessage?: string | undefined;
|
|
136
|
+
readonly accessor: string;
|
|
137
137
|
};
|
|
138
138
|
readonly grow?: boolean | undefined;
|
|
139
|
+
readonly enableSorting?: boolean | undefined;
|
|
139
140
|
readonly options: {
|
|
140
141
|
readonly kind: "remote";
|
|
141
142
|
readonly request: string;
|
|
@@ -177,7 +178,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
177
178
|
readonly keywords?: readonly string[] | undefined;
|
|
178
179
|
}[];
|
|
179
180
|
};
|
|
180
|
-
readonly enableSorting?: boolean | undefined;
|
|
181
181
|
readonly sortKey?: string | undefined;
|
|
182
182
|
}) => any) | undefined;
|
|
183
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -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,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
88
89
|
readonly keywords?: readonly string[] | undefined;
|
|
89
90
|
}[];
|
|
90
91
|
};
|
|
91
|
-
readonly enableSorting?: boolean | undefined;
|
|
92
92
|
readonly sortKey?: string | undefined;
|
|
93
93
|
}) => any;
|
|
94
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -132,10 +132,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
132
132
|
readonly target: string;
|
|
133
133
|
readonly operation: string;
|
|
134
134
|
}[] | undefined;
|
|
135
|
-
readonly accessor: string;
|
|
136
135
|
readonly successMessage?: string | undefined;
|
|
136
|
+
readonly accessor: string;
|
|
137
137
|
};
|
|
138
138
|
readonly grow?: boolean | undefined;
|
|
139
|
+
readonly enableSorting?: boolean | undefined;
|
|
139
140
|
readonly options: {
|
|
140
141
|
readonly kind: "remote";
|
|
141
142
|
readonly request: string;
|
|
@@ -177,7 +178,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
177
178
|
readonly keywords?: readonly string[] | undefined;
|
|
178
179
|
}[];
|
|
179
180
|
};
|
|
180
|
-
readonly enableSorting?: boolean | undefined;
|
|
181
181
|
readonly sortKey?: string | undefined;
|
|
182
182
|
}) => any) | undefined;
|
|
183
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -279,6 +279,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
279
279
|
compatibilityDate: Schema.Literal<["2026-05-28"]>;
|
|
280
280
|
}>;
|
|
281
281
|
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
|
|
282
|
+
export declare function defaults(): Partial<Value>;
|
|
282
283
|
export declare const migrateFrom: ReadonlyArray<MigrateSource>;
|
|
283
284
|
export declare const migrate: MigrateFn;
|
|
284
285
|
export declare function toColumnDef(value: Value, { getLocaleText, $cel, inheritedContext }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
|
|
@@ -204,6 +204,14 @@ export function schema(configure) {
|
|
|
204
204
|
description: "\u4E0B\u62C9\u5355\u9009\u6E32\u67D3\u5668"
|
|
205
205
|
});
|
|
206
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
|
+
}
|
|
207
215
|
export const migrateFrom = [
|
|
208
216
|
{ type: "com.shwfed.table.column.combobox-single", compatibilityDate: "2026-05-26" },
|
|
209
217
|
{ type: "com.shwfed.table.column.combobox-single.remote", compatibilityDate: "2026-05-26" }
|
|
@@ -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,7 @@ 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
67
|
readonly sortKey?: string | undefined;
|
|
68
68
|
}) => any;
|
|
69
69
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -108,6 +108,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
readonly data: string;
|
|
109
109
|
readonly request?: string | undefined;
|
|
110
110
|
};
|
|
111
|
+
readonly enableSorting?: boolean | undefined;
|
|
112
|
+
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
111
113
|
readonly nodeKey: string;
|
|
112
114
|
readonly nodeChildren: string;
|
|
113
115
|
readonly nodeLabel: readonly [{
|
|
@@ -117,9 +119,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
117
119
|
readonly locale: "en" | "ja" | "ko";
|
|
118
120
|
readonly message: string;
|
|
119
121
|
}[]];
|
|
120
|
-
readonly expandAll: boolean;
|
|
121
|
-
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
122
|
-
readonly enableSorting?: boolean | undefined;
|
|
123
122
|
readonly nodeTooltip?: readonly [{
|
|
124
123
|
readonly locale: "zh";
|
|
125
124
|
readonly message: string;
|
|
@@ -128,6 +127,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
128
127
|
readonly message: string;
|
|
129
128
|
}[]] | undefined;
|
|
130
129
|
readonly nodeSelectable?: string | undefined;
|
|
130
|
+
readonly expandAll: boolean;
|
|
131
131
|
readonly sortKey?: string | undefined;
|
|
132
132
|
}) => any) | undefined;
|
|
133
133
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -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,7 @@ 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
67
|
readonly sortKey?: string | undefined;
|
|
68
68
|
}) => any;
|
|
69
69
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -108,6 +108,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
readonly data: string;
|
|
109
109
|
readonly request?: string | undefined;
|
|
110
110
|
};
|
|
111
|
+
readonly enableSorting?: boolean | undefined;
|
|
112
|
+
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
111
113
|
readonly nodeKey: string;
|
|
112
114
|
readonly nodeChildren: string;
|
|
113
115
|
readonly nodeLabel: readonly [{
|
|
@@ -117,9 +119,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
117
119
|
readonly locale: "en" | "ja" | "ko";
|
|
118
120
|
readonly message: string;
|
|
119
121
|
}[]];
|
|
120
|
-
readonly expandAll: boolean;
|
|
121
|
-
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
122
|
-
readonly enableSorting?: boolean | undefined;
|
|
123
122
|
readonly nodeTooltip?: readonly [{
|
|
124
123
|
readonly locale: "zh";
|
|
125
124
|
readonly message: string;
|
|
@@ -128,6 +127,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
128
127
|
readonly message: string;
|
|
129
128
|
}[]] | undefined;
|
|
130
129
|
readonly nodeSelectable?: string | undefined;
|
|
130
|
+
readonly expandAll: boolean;
|
|
131
131
|
readonly sortKey?: string | undefined;
|
|
132
132
|
}) => any) | undefined;
|
|
133
133
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -122,6 +122,9 @@ export function schema(configure) {
|
|
|
122
122
|
}
|
|
123
123
|
export function defaults() {
|
|
124
124
|
return {
|
|
125
|
+
title: [{ locale: "zh", message: "" }],
|
|
126
|
+
binding: "",
|
|
127
|
+
size: 200,
|
|
125
128
|
dataSource: { data: "[]" },
|
|
126
129
|
nodeKey: "string(node.id)",
|
|
127
130
|
nodeChildren: "has(node.children) ? node.children : null",
|
|
@@ -44,6 +44,7 @@ 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;
|
|
47
48
|
readonly nodeKey: string;
|
|
48
49
|
readonly nodeChildren: string;
|
|
49
50
|
readonly nodeLabel: readonly [{
|
|
@@ -53,8 +54,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
54
|
readonly locale: "en" | "ja" | "ko";
|
|
54
55
|
readonly message: string;
|
|
55
56
|
}[]];
|
|
56
|
-
readonly expandAll: boolean;
|
|
57
|
-
readonly enableSorting?: boolean | undefined;
|
|
58
57
|
readonly nodeTooltip?: readonly [{
|
|
59
58
|
readonly locale: "zh";
|
|
60
59
|
readonly message: string;
|
|
@@ -63,6 +62,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
63
62
|
readonly message: string;
|
|
64
63
|
}[]] | undefined;
|
|
65
64
|
readonly nodeSelectable?: string | undefined;
|
|
65
|
+
readonly expandAll: boolean;
|
|
66
66
|
readonly sortKey?: string | undefined;
|
|
67
67
|
}) => any;
|
|
68
68
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -107,6 +107,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
107
107
|
readonly data: string;
|
|
108
108
|
readonly request?: string | undefined;
|
|
109
109
|
};
|
|
110
|
+
readonly enableSorting?: boolean | undefined;
|
|
110
111
|
readonly nodeKey: string;
|
|
111
112
|
readonly nodeChildren: string;
|
|
112
113
|
readonly nodeLabel: readonly [{
|
|
@@ -116,8 +117,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
116
117
|
readonly locale: "en" | "ja" | "ko";
|
|
117
118
|
readonly message: string;
|
|
118
119
|
}[]];
|
|
119
|
-
readonly expandAll: boolean;
|
|
120
|
-
readonly enableSorting?: boolean | undefined;
|
|
121
120
|
readonly nodeTooltip?: readonly [{
|
|
122
121
|
readonly locale: "zh";
|
|
123
122
|
readonly message: string;
|
|
@@ -126,6 +125,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
126
125
|
readonly message: string;
|
|
127
126
|
}[]] | undefined;
|
|
128
127
|
readonly nodeSelectable?: string | undefined;
|
|
128
|
+
readonly expandAll: boolean;
|
|
129
129
|
readonly sortKey?: string | undefined;
|
|
130
130
|
}) => any) | undefined;
|
|
131
131
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -44,6 +44,7 @@ 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;
|
|
47
48
|
readonly nodeKey: string;
|
|
48
49
|
readonly nodeChildren: string;
|
|
49
50
|
readonly nodeLabel: readonly [{
|
|
@@ -53,8 +54,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
54
|
readonly locale: "en" | "ja" | "ko";
|
|
54
55
|
readonly message: string;
|
|
55
56
|
}[]];
|
|
56
|
-
readonly expandAll: boolean;
|
|
57
|
-
readonly enableSorting?: boolean | undefined;
|
|
58
57
|
readonly nodeTooltip?: readonly [{
|
|
59
58
|
readonly locale: "zh";
|
|
60
59
|
readonly message: string;
|
|
@@ -63,6 +62,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
63
62
|
readonly message: string;
|
|
64
63
|
}[]] | undefined;
|
|
65
64
|
readonly nodeSelectable?: string | undefined;
|
|
65
|
+
readonly expandAll: boolean;
|
|
66
66
|
readonly sortKey?: string | undefined;
|
|
67
67
|
}) => any;
|
|
68
68
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -107,6 +107,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
107
107
|
readonly data: string;
|
|
108
108
|
readonly request?: string | undefined;
|
|
109
109
|
};
|
|
110
|
+
readonly enableSorting?: boolean | undefined;
|
|
110
111
|
readonly nodeKey: string;
|
|
111
112
|
readonly nodeChildren: string;
|
|
112
113
|
readonly nodeLabel: readonly [{
|
|
@@ -116,8 +117,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
116
117
|
readonly locale: "en" | "ja" | "ko";
|
|
117
118
|
readonly message: string;
|
|
118
119
|
}[]];
|
|
119
|
-
readonly expandAll: boolean;
|
|
120
|
-
readonly enableSorting?: boolean | undefined;
|
|
121
120
|
readonly nodeTooltip?: readonly [{
|
|
122
121
|
readonly locale: "zh";
|
|
123
122
|
readonly message: string;
|
|
@@ -126,6 +125,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
126
125
|
readonly message: string;
|
|
127
126
|
}[]] | undefined;
|
|
128
127
|
readonly nodeSelectable?: string | undefined;
|
|
128
|
+
readonly expandAll: boolean;
|
|
129
129
|
readonly sortKey?: string | undefined;
|
|
130
130
|
}) => any) | undefined;
|
|
131
131
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -115,6 +115,9 @@ export function schema(configure) {
|
|
|
115
115
|
}
|
|
116
116
|
export function defaults() {
|
|
117
117
|
return {
|
|
118
|
+
title: [{ locale: "zh", message: "" }],
|
|
119
|
+
binding: "",
|
|
120
|
+
size: 200,
|
|
118
121
|
dataSource: { data: "[]" },
|
|
119
122
|
nodeKey: "string(node.id)",
|
|
120
123
|
nodeChildren: "has(node.children) ? node.children : null",
|
|
@@ -446,62 +446,8 @@ function getColumnTypeLabel(type, compatibilityDate) {
|
|
|
446
446
|
return findColumnEntry(type, compatibilityDate)?.metadata.name ?? type;
|
|
447
447
|
}
|
|
448
448
|
function getColumnDefaults(id, type, compatibilityDate) {
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
return { id, type, compatibilityDate, title: [{ locale: "zh", message: "" }], accessor: "", size: 120 };
|
|
452
|
-
case "com.shwfed.table.column.date":
|
|
453
|
-
return { id, type, compatibilityDate, title: [{ locale: "zh", message: "" }], accessor: "", format: "yyyy-MM-dd", size: 120 };
|
|
454
|
-
case "com.shwfed.table.column.number":
|
|
455
|
-
return { id, type, compatibilityDate, title: [{ locale: "zh", message: "" }], accessor: "", size: 120, align: "right" };
|
|
456
|
-
case "com.shwfed.table.column.select":
|
|
457
|
-
return { id, type, compatibilityDate, mode: "checkbox" };
|
|
458
|
-
case "com.shwfed.table.column.markdown":
|
|
459
|
-
return { id, type, compatibilityDate, title: [{ locale: "zh", message: "" }], markdown: [{ locale: "zh", message: "" }], size: 120 };
|
|
460
|
-
case "com.shwfed.table.column.actions":
|
|
461
|
-
return { id, type, compatibilityDate, title: [{ locale: "zh", message: "" }], size: 200, groups: [], items: [] };
|
|
462
|
-
case "com.shwfed.table.column.combobox-multi":
|
|
463
|
-
case "com.shwfed.table.column.combobox-single":
|
|
464
|
-
return {
|
|
465
|
-
id,
|
|
466
|
-
type,
|
|
467
|
-
compatibilityDate,
|
|
468
|
-
title: [{ locale: "zh", message: "" }],
|
|
469
|
-
size: 200,
|
|
470
|
-
write: { kind: "binding", binding: "" },
|
|
471
|
-
options: { kind: "static", items: [] }
|
|
472
|
-
};
|
|
473
|
-
case "com.shwfed.table.column.tree-combobox-single":
|
|
474
|
-
return {
|
|
475
|
-
id,
|
|
476
|
-
type,
|
|
477
|
-
compatibilityDate,
|
|
478
|
-
title: [{ locale: "zh", message: "" }],
|
|
479
|
-
binding: "",
|
|
480
|
-
size: 200,
|
|
481
|
-
dataSource: { data: "[]" },
|
|
482
|
-
nodeKey: "string(node.id)",
|
|
483
|
-
nodeChildren: "has(node.children) ? node.children : null",
|
|
484
|
-
nodeLabel: [{ locale: "zh", message: "{{ node.label }}" }],
|
|
485
|
-
expandAll: false
|
|
486
|
-
};
|
|
487
|
-
case "com.shwfed.table.column.tree-combobox-multi":
|
|
488
|
-
return {
|
|
489
|
-
id,
|
|
490
|
-
type,
|
|
491
|
-
compatibilityDate,
|
|
492
|
-
title: [{ locale: "zh", message: "" }],
|
|
493
|
-
binding: "",
|
|
494
|
-
size: 200,
|
|
495
|
-
dataSource: { data: "[]" },
|
|
496
|
-
nodeKey: "string(node.id)",
|
|
497
|
-
nodeChildren: "has(node.children) ? node.children : null",
|
|
498
|
-
nodeLabel: [{ locale: "zh", message: "{{ node.label }}" }],
|
|
499
|
-
cascade: "independent",
|
|
500
|
-
expandAll: false
|
|
501
|
-
};
|
|
502
|
-
default:
|
|
503
|
-
return { id, type, compatibilityDate };
|
|
504
|
-
}
|
|
449
|
+
const entry = findColumnEntry(type, compatibilityDate);
|
|
450
|
+
return { ...entry?.defaults?.() ?? {}, id, type, compatibilityDate };
|
|
505
451
|
}
|
|
506
452
|
function addColumn(columnType, compatibilityDate) {
|
|
507
453
|
const col = getColumnDefaults(crypto.randomUUID(), columnType, compatibilityDate);
|
|
@@ -585,9 +531,9 @@ if (breadcrumbExt) {
|
|
|
585
531
|
crumb.dispose();
|
|
586
532
|
});
|
|
587
533
|
}
|
|
588
|
-
function patchColumn(id,
|
|
534
|
+
function patchColumn(id, next) {
|
|
589
535
|
editingColumns.value = editingColumns.value.map(
|
|
590
|
-
(c) => c.id === id ? { ...
|
|
536
|
+
(c) => c.id === id ? { ...next, id } : c
|
|
591
537
|
);
|
|
592
538
|
}
|
|
593
539
|
function patchSelectedColumn(next) {
|
|
@@ -43,6 +43,14 @@ export type MigrateSource = Readonly<{
|
|
|
43
43
|
type: string;
|
|
44
44
|
compatibilityDate: string;
|
|
45
45
|
}>;
|
|
46
|
+
/**
|
|
47
|
+
* Optional creation-time defaults factory. Returns a partial config that
|
|
48
|
+
* merges into the seed when the user adds a new column, so newly-added
|
|
49
|
+
* columns arrive with their required fields populated. Schemas remain pure
|
|
50
|
+
* validators — defaults live next to them. Mirrors `FieldDefaults` in the
|
|
51
|
+
* form host's `resolve.ts`.
|
|
52
|
+
*/
|
|
53
|
+
export type ColumnDefaults = () => Record<string, any>;
|
|
46
54
|
export type ColumnEntry = Readonly<{
|
|
47
55
|
type: string;
|
|
48
56
|
compatibilityDate: string;
|
|
@@ -64,6 +72,12 @@ export type ColumnEntry = Readonly<{
|
|
|
64
72
|
supersededBy?: MigrateSource;
|
|
65
73
|
migrate?: MigrateFn;
|
|
66
74
|
migrateFrom?: ReadonlyArray<MigrateSource>;
|
|
75
|
+
/**
|
|
76
|
+
* Optional creation-time defaults. The host merges the returned partial
|
|
77
|
+
* onto the seed when the user adds a new column via the picker. Absent →
|
|
78
|
+
* the column is created with only `{ id, type, compatibilityDate }`.
|
|
79
|
+
*/
|
|
80
|
+
defaults?: ColumnDefaults;
|
|
67
81
|
}>;
|
|
68
82
|
export declare const COLUMNS: ReadonlyArray<ColumnEntry>;
|
|
69
83
|
export declare function allColumnSchemas(configure: (env: Environment) => void): ReadonlyArray<AnySchema>;
|
|
@@ -76,7 +76,8 @@ export const COLUMNS = registry.ENTRIES.map((e) => ({
|
|
|
76
76
|
deprecated: e.deprecated,
|
|
77
77
|
...e.supersededBy !== void 0 ? { supersededBy: e.supersededBy } : {},
|
|
78
78
|
...e.module.migrate !== void 0 ? { migrate: e.module.migrate } : {},
|
|
79
|
-
...e.module.migrateFrom !== void 0 ? { migrateFrom: e.module.migrateFrom } : {}
|
|
79
|
+
...e.module.migrateFrom !== void 0 ? { migrateFrom: e.module.migrateFrom } : {},
|
|
80
|
+
...e.module.defaults !== void 0 ? { defaults: e.module.defaults } : {}
|
|
80
81
|
}));
|
|
81
82
|
const migrationTargets = (() => {
|
|
82
83
|
const map = /* @__PURE__ */ new Map();
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aO as e}from"./index-x-77enex.js";import{aP as r,aQ as s,aR as t}from"./index-x-77enex.js";export{r as TableConfig,s as createTableConfig,e as default,t as getColumnTechnicalKey};
|