@shwfed/config 2.7.8 → 2.9.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 +97 -34
- package/dist/module.json +1 -1
- package/dist/preview/assets/{badge-KAEXz3VO.js → badge-Ddz0ExD-.js} +1 -1
- package/dist/preview/assets/{config-DbirfZyy.js → config---5_lEKG.js} +1 -1
- package/dist/preview/assets/{config-ZczGik30.js → config-5qIYVWZh.js} +1 -1
- package/dist/preview/assets/config-B8zbFg3y.js +1 -0
- package/dist/preview/assets/{config-DbfJWa8K.js → config-Bn619USg.js} +1 -1
- package/dist/preview/assets/{config-C-QRPeN1.js → config-CUeBTyLb.js} +1 -1
- package/dist/preview/assets/config-DN_3WauN.js +1 -0
- package/dist/preview/assets/config-U-3fWb-2.js +1 -0
- package/dist/preview/assets/config-q5VV9rp7.js +1 -0
- package/dist/preview/assets/config-vePqHFvZ.js +1 -0
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-CQ6MUPKO.js → definition.vue_vue_type_script_setup_true_lang-fQa65UMX.js} +1 -1
- package/dist/preview/assets/index-BKaqQGb-.js +688 -0
- package/dist/preview/assets/index-Bj8xIK5h.js +1 -0
- package/dist/preview/assets/index-BlHAyQdm.css +1 -0
- package/dist/preview/assets/{index-Bv_aA34a.js → index-CzWhSvDG.js} +1 -1
- package/dist/preview/assets/{item-SC0WQMVu.js → item-DHarupON.js} +1 -1
- package/dist/preview/assets/{runtime-DcStOiOi.js → runtime-560tuaHv.js} +1 -1
- package/dist/preview/assets/{runtime-Ckuz5Kxm.js → runtime-C2rQ3L3-.js} +1 -1
- package/dist/preview/assets/{runtime-BPOf7Yqz.js → runtime-CKghL8I_.js} +1 -1
- package/dist/preview/assets/runtime-CMsaNery.js +1 -0
- package/dist/preview/assets/runtime-CMuCGJZm.js +1 -0
- package/dist/preview/assets/{runtime-DO0anKbw.js → runtime-DOM_La4X.js} +1 -1
- package/dist/preview/assets/{runtime-EVgYW6_7.js → runtime-DQHb9t0r.js} +1 -1
- package/dist/preview/assets/{runtime-CnKlH0mi.js → runtime-Dgl3wVfD.js} +1 -1
- package/dist/preview/assets/{runtime-i32sR7d3.js → runtime-aLgWVLET.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.d.vue.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.vue +28 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.vue.d.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/runtime.vue +17 -17
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.d.ts +4 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.js +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.d.vue.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.vue +25 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.vue.d.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/runtime.vue +2 -7
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.d.ts +4 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.js +8 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/config.vue +2 -0
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.d.ts +5 -0
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.js +8 -3
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/runtime.vue +12 -1
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +8 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.js +3 -3
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue +15 -25
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/runtime.vue +11 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +1 -1
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.js +4 -4
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/config.d.vue.ts +2 -0
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/config.vue.d.ts +2 -0
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +2 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/runtime.vue +13 -2
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.js +4 -1
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/runtime.vue +10 -2
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.js +4 -1
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/runtime.vue +16 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.js +4 -1
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/runtime.vue +13 -5
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.js +4 -1
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/runtime.vue +25 -5
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.js +4 -1
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/runtime.vue +18 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.js +4 -1
- package/dist/runtime/components/form/index.vue +15 -3
- package/dist/runtime/components/form/schema.d.ts +4 -0
- package/dist/runtime/components/form/schema.js +1 -0
- package/dist/runtime/components/form/unit-config.vue +6 -1
- package/dist/runtime/components/form/utils/form-vars.js +4 -0
- package/dist/runtime/components/form/utils/resolve.d.ts +10 -0
- 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-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-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-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-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-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-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/runtime.vue +13 -2
- 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 +4 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/runtime.vue +10 -2
- 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 +4 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/runtime.vue +16 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.js +3 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/runtime.vue +13 -5
- 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 -1
- package/dist/runtime/components/table/config.vue +35 -1
- package/dist/runtime/components/table/index.d.vue.ts +2 -0
- package/dist/runtime/components/table/index.vue +8 -0
- package/dist/runtime/components/table/index.vue.d.ts +2 -0
- package/dist/runtime/components/table/row-provider.vue +8 -0
- package/dist/runtime/components/table/schema.d.ts +4 -0
- package/dist/runtime/components/table/schema.js +4 -0
- package/dist/runtime/components/table/utils/resolve.d.ts +7 -0
- package/dist/runtime/components/table/utils/shared.js +4 -0
- package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.d.vue.ts +1 -0
- package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.vue +9 -1
- package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.vue.d.ts +1 -0
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.d.vue.ts +2 -2
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +33 -4
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue.d.ts +2 -2
- package/dist/runtime/components/ui/expression-editor/picker-entries.d.ts +3 -2
- package/dist/runtime/components/ui/expression-editor/picker-entries.js +14 -3
- package/dist/runtime/components/ui/expression-editor/selection-chip-extension.d.ts +4 -0
- package/dist/runtime/components/ui/expression-editor/selection-chip-extension.js +119 -0
- package/dist/runtime/components/ui/expression-editor/selection-refs.d.ts +8 -0
- package/dist/runtime/components/ui/expression-editor/selection-refs.js +29 -0
- package/dist/runtime/share/event-bus.d.ts +12 -12
- package/dist/runtime/share/use-persisted-query.d.ts +21 -0
- package/dist/runtime/share/use-persisted-query.js +33 -0
- package/dist/runtime/utils/cel-context.d.ts +22 -0
- package/dist/runtime/utils/cel-context.js +8 -0
- package/dist/runtime/utils/selections-registry.d.ts +77 -0
- package/dist/runtime/utils/selections-registry.js +49 -0
- package/package.json +1 -1
- package/dist/preview/assets/config-BXx5syNf.js +0 -1
- package/dist/preview/assets/config-Bb9Yeh33.js +0 -1
- package/dist/preview/assets/config-CkKx7sVR.js +0 -1
- package/dist/preview/assets/config-CtbYlZCL.js +0 -1
- package/dist/preview/assets/config-DPlbFBRi.js +0 -1
- package/dist/preview/assets/index-C9P-6gZd.css +0 -1
- package/dist/preview/assets/index-CJFU9znN.js +0 -1
- package/dist/preview/assets/index-DUOkekYu.js +0 -680
- package/dist/preview/assets/runtime-CC2caFS9.js +0 -1
- package/dist/preview/assets/runtime-CLaRFZzt.js +0 -1
- package/dist/runtime/share/form-validate.d.ts +0 -18
- package/dist/runtime/share/form-validate.js +0 -8
|
@@ -50,9 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
50
50
|
readonly locale: "en" | "ja" | "ko";
|
|
51
51
|
readonly message: string;
|
|
52
52
|
}[]];
|
|
53
|
+
readonly successMessage?: string | undefined;
|
|
53
54
|
readonly accessor: string;
|
|
54
55
|
readonly sortKey?: string | undefined;
|
|
55
|
-
readonly successMessage?: string | undefined;
|
|
56
56
|
}) => any;
|
|
57
57
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
58
58
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -102,9 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
102
102
|
readonly locale: "en" | "ja" | "ko";
|
|
103
103
|
readonly message: string;
|
|
104
104
|
}[]];
|
|
105
|
+
readonly successMessage?: string | undefined;
|
|
105
106
|
readonly accessor: string;
|
|
106
107
|
readonly sortKey?: string | undefined;
|
|
107
|
-
readonly successMessage?: string | undefined;
|
|
108
108
|
}) => any) | undefined;
|
|
109
109
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
110
110
|
declare const _default: typeof __VLS_export;
|
|
@@ -50,9 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
50
50
|
readonly locale: "en" | "ja" | "ko";
|
|
51
51
|
readonly message: string;
|
|
52
52
|
}[]];
|
|
53
|
+
readonly successMessage?: string | undefined;
|
|
53
54
|
readonly accessor: string;
|
|
54
55
|
readonly sortKey?: string | undefined;
|
|
55
|
-
readonly successMessage?: string | undefined;
|
|
56
56
|
}) => any;
|
|
57
57
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
58
58
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -102,9 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
102
102
|
readonly locale: "en" | "ja" | "ko";
|
|
103
103
|
readonly message: string;
|
|
104
104
|
}[]];
|
|
105
|
+
readonly successMessage?: string | undefined;
|
|
105
106
|
readonly accessor: string;
|
|
106
107
|
readonly sortKey?: string | undefined;
|
|
107
|
-
readonly successMessage?: string | undefined;
|
|
108
108
|
}) => any) | undefined;
|
|
109
109
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
110
110
|
declare const _default: typeof __VLS_export;
|
|
@@ -64,9 +64,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
64
64
|
readonly readonly?: string | undefined;
|
|
65
65
|
readonly grow?: boolean | undefined;
|
|
66
66
|
readonly enableSorting?: boolean | undefined;
|
|
67
|
+
readonly successMessage?: string | undefined;
|
|
67
68
|
readonly accessor: string;
|
|
68
69
|
readonly sortKey?: string | undefined;
|
|
69
|
-
readonly successMessage?: string | undefined;
|
|
70
70
|
}) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
72
72
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -130,9 +130,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
130
130
|
readonly readonly?: string | undefined;
|
|
131
131
|
readonly grow?: boolean | undefined;
|
|
132
132
|
readonly enableSorting?: boolean | undefined;
|
|
133
|
+
readonly successMessage?: string | undefined;
|
|
133
134
|
readonly accessor: string;
|
|
134
135
|
readonly sortKey?: string | undefined;
|
|
135
|
-
readonly successMessage?: string | undefined;
|
|
136
136
|
}) => any) | undefined;
|
|
137
137
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
138
138
|
declare const _default: typeof __VLS_export;
|
|
@@ -64,9 +64,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
64
64
|
readonly readonly?: string | undefined;
|
|
65
65
|
readonly grow?: boolean | undefined;
|
|
66
66
|
readonly enableSorting?: boolean | undefined;
|
|
67
|
+
readonly successMessage?: string | undefined;
|
|
67
68
|
readonly accessor: string;
|
|
68
69
|
readonly sortKey?: string | undefined;
|
|
69
|
-
readonly successMessage?: string | undefined;
|
|
70
70
|
}) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
72
72
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -130,9 +130,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
130
130
|
readonly readonly?: string | undefined;
|
|
131
131
|
readonly grow?: boolean | undefined;
|
|
132
132
|
readonly enableSorting?: boolean | undefined;
|
|
133
|
+
readonly successMessage?: string | undefined;
|
|
133
134
|
readonly accessor: string;
|
|
134
135
|
readonly sortKey?: string | undefined;
|
|
135
|
-
readonly successMessage?: string | undefined;
|
|
136
136
|
}) => any) | undefined;
|
|
137
137
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
138
138
|
declare const _default: typeof __VLS_export;
|
|
@@ -50,9 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
50
50
|
readonly locale: "en" | "ja" | "ko";
|
|
51
51
|
readonly message: string;
|
|
52
52
|
}[]];
|
|
53
|
+
readonly successMessage?: string | undefined;
|
|
53
54
|
readonly accessor: string;
|
|
54
55
|
readonly sortKey?: string | undefined;
|
|
55
|
-
readonly successMessage?: string | undefined;
|
|
56
56
|
}) => any;
|
|
57
57
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
58
58
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -102,9 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
102
102
|
readonly locale: "en" | "ja" | "ko";
|
|
103
103
|
readonly message: string;
|
|
104
104
|
}[]];
|
|
105
|
+
readonly successMessage?: string | undefined;
|
|
105
106
|
readonly accessor: string;
|
|
106
107
|
readonly sortKey?: string | undefined;
|
|
107
|
-
readonly successMessage?: string | undefined;
|
|
108
108
|
}) => any) | undefined;
|
|
109
109
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
110
110
|
declare const _default: typeof __VLS_export;
|
|
@@ -50,9 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
50
50
|
readonly locale: "en" | "ja" | "ko";
|
|
51
51
|
readonly message: string;
|
|
52
52
|
}[]];
|
|
53
|
+
readonly successMessage?: string | undefined;
|
|
53
54
|
readonly accessor: string;
|
|
54
55
|
readonly sortKey?: string | undefined;
|
|
55
|
-
readonly successMessage?: string | undefined;
|
|
56
56
|
}) => any;
|
|
57
57
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
58
58
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -102,9 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
102
102
|
readonly locale: "en" | "ja" | "ko";
|
|
103
103
|
readonly message: string;
|
|
104
104
|
}[]];
|
|
105
|
+
readonly successMessage?: string | undefined;
|
|
105
106
|
readonly accessor: string;
|
|
106
107
|
readonly sortKey?: string | undefined;
|
|
107
|
-
readonly successMessage?: string | undefined;
|
|
108
108
|
}) => any) | undefined;
|
|
109
109
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
110
110
|
declare const _default: typeof __VLS_export;
|
|
@@ -64,9 +64,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
64
64
|
readonly readonly?: string | undefined;
|
|
65
65
|
readonly grow?: boolean | undefined;
|
|
66
66
|
readonly enableSorting?: boolean | undefined;
|
|
67
|
+
readonly successMessage?: string | undefined;
|
|
67
68
|
readonly accessor: string;
|
|
68
69
|
readonly sortKey?: string | undefined;
|
|
69
|
-
readonly successMessage?: string | undefined;
|
|
70
70
|
}) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
72
72
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -130,9 +130,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
130
130
|
readonly readonly?: string | undefined;
|
|
131
131
|
readonly grow?: boolean | undefined;
|
|
132
132
|
readonly enableSorting?: boolean | undefined;
|
|
133
|
+
readonly successMessage?: string | undefined;
|
|
133
134
|
readonly accessor: string;
|
|
134
135
|
readonly sortKey?: string | undefined;
|
|
135
|
-
readonly successMessage?: string | undefined;
|
|
136
136
|
}) => any) | undefined;
|
|
137
137
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
138
138
|
declare const _default: typeof __VLS_export;
|
|
@@ -64,9 +64,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
64
64
|
readonly readonly?: string | undefined;
|
|
65
65
|
readonly grow?: boolean | undefined;
|
|
66
66
|
readonly enableSorting?: boolean | undefined;
|
|
67
|
+
readonly successMessage?: string | undefined;
|
|
67
68
|
readonly accessor: string;
|
|
68
69
|
readonly sortKey?: string | undefined;
|
|
69
|
-
readonly successMessage?: string | undefined;
|
|
70
70
|
}) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
72
72
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -130,9 +130,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
130
130
|
readonly readonly?: string | undefined;
|
|
131
131
|
readonly grow?: boolean | undefined;
|
|
132
132
|
readonly enableSorting?: boolean | undefined;
|
|
133
|
+
readonly successMessage?: string | undefined;
|
|
133
134
|
readonly accessor: string;
|
|
134
135
|
readonly sortKey?: string | undefined;
|
|
135
|
-
readonly successMessage?: string | undefined;
|
|
136
136
|
}) => any) | undefined;
|
|
137
137
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
138
138
|
declare const _default: typeof __VLS_export;
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
79
79
|
};
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
|
+
readonly successMessage?: string | undefined;
|
|
82
83
|
readonly accessor: string;
|
|
83
84
|
readonly sortKey?: string | undefined;
|
|
84
|
-
readonly successMessage?: string | undefined;
|
|
85
85
|
}) => any;
|
|
86
86
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
87
87
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -160,9 +160,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
160
160
|
};
|
|
161
161
|
}[];
|
|
162
162
|
};
|
|
163
|
+
readonly successMessage?: string | undefined;
|
|
163
164
|
readonly accessor: string;
|
|
164
165
|
readonly sortKey?: string | undefined;
|
|
165
|
-
readonly successMessage?: string | undefined;
|
|
166
166
|
}) => any) | undefined;
|
|
167
167
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
168
|
declare const _default: typeof __VLS_export;
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
79
79
|
};
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
|
+
readonly successMessage?: string | undefined;
|
|
82
83
|
readonly accessor: string;
|
|
83
84
|
readonly sortKey?: string | undefined;
|
|
84
|
-
readonly successMessage?: string | undefined;
|
|
85
85
|
}) => any;
|
|
86
86
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
87
87
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -160,9 +160,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
160
160
|
};
|
|
161
161
|
}[];
|
|
162
162
|
};
|
|
163
|
+
readonly successMessage?: string | undefined;
|
|
163
164
|
readonly accessor: string;
|
|
164
165
|
readonly sortKey?: string | undefined;
|
|
165
|
-
readonly successMessage?: string | undefined;
|
|
166
166
|
}) => any) | undefined;
|
|
167
167
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
168
|
declare const _default: typeof __VLS_export;
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
79
79
|
};
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
|
+
readonly successMessage?: string | undefined;
|
|
82
83
|
readonly accessor: string;
|
|
83
84
|
readonly sortKey?: string | undefined;
|
|
84
|
-
readonly successMessage?: string | undefined;
|
|
85
85
|
}) => any;
|
|
86
86
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
87
87
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -160,9 +160,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
160
160
|
};
|
|
161
161
|
}[];
|
|
162
162
|
};
|
|
163
|
+
readonly successMessage?: string | undefined;
|
|
163
164
|
readonly accessor: string;
|
|
164
165
|
readonly sortKey?: string | undefined;
|
|
165
|
-
readonly successMessage?: string | undefined;
|
|
166
166
|
}) => any) | undefined;
|
|
167
167
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
168
|
declare const _default: typeof __VLS_export;
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
79
79
|
};
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
|
+
readonly successMessage?: string | undefined;
|
|
82
83
|
readonly accessor: string;
|
|
83
84
|
readonly sortKey?: string | undefined;
|
|
84
|
-
readonly successMessage?: string | undefined;
|
|
85
85
|
}) => any;
|
|
86
86
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
87
87
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -160,9 +160,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
160
160
|
};
|
|
161
161
|
}[];
|
|
162
162
|
};
|
|
163
|
+
readonly successMessage?: string | undefined;
|
|
163
164
|
readonly accessor: string;
|
|
164
165
|
readonly sortKey?: string | undefined;
|
|
165
|
-
readonly successMessage?: string | undefined;
|
|
166
166
|
}) => any) | undefined;
|
|
167
167
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
168
|
declare const _default: typeof __VLS_export;
|
|
@@ -87,8 +87,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
87
87
|
readonly target: string;
|
|
88
88
|
readonly operation: string;
|
|
89
89
|
}[] | undefined;
|
|
90
|
-
readonly accessor: string;
|
|
91
90
|
readonly successMessage?: string | undefined;
|
|
91
|
+
readonly accessor: string;
|
|
92
92
|
};
|
|
93
93
|
}) => any;
|
|
94
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -176,8 +176,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
176
176
|
readonly target: string;
|
|
177
177
|
readonly operation: string;
|
|
178
178
|
}[] | undefined;
|
|
179
|
-
readonly accessor: string;
|
|
180
179
|
readonly successMessage?: string | undefined;
|
|
180
|
+
readonly accessor: string;
|
|
181
181
|
};
|
|
182
182
|
}) => any) | undefined;
|
|
183
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -87,8 +87,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
87
87
|
readonly target: string;
|
|
88
88
|
readonly operation: string;
|
|
89
89
|
}[] | undefined;
|
|
90
|
-
readonly accessor: string;
|
|
91
90
|
readonly successMessage?: string | undefined;
|
|
91
|
+
readonly accessor: string;
|
|
92
92
|
};
|
|
93
93
|
}) => any;
|
|
94
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -176,8 +176,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
176
176
|
readonly target: string;
|
|
177
177
|
readonly operation: string;
|
|
178
178
|
}[] | undefined;
|
|
179
|
-
readonly accessor: string;
|
|
180
179
|
readonly successMessage?: string | undefined;
|
|
180
|
+
readonly accessor: string;
|
|
181
181
|
};
|
|
182
182
|
}) => any) | undefined;
|
|
183
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -9,6 +9,7 @@ import { useI18n } from "vue-i18n";
|
|
|
9
9
|
import { asRequest, fetchJsonOption } from "../../../../../share/request";
|
|
10
10
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
11
11
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
12
|
+
import { publishSelection } from "../../../../../utils/selections-registry";
|
|
12
13
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
13
14
|
import { dispatchTriggers, useEventChannel } from "../../../../../share/event-bus";
|
|
14
15
|
import {
|
|
@@ -97,7 +98,8 @@ const staticEntries = computed(() => {
|
|
|
97
98
|
value: item.value.value,
|
|
98
99
|
label: labelTpl ? safeInterpolate(labelTpl, {}) : "",
|
|
99
100
|
tooltip: tooltipTpl ? safeInterpolate(tooltipTpl, {}) : void 0,
|
|
100
|
-
keywords: (item.keywords ?? []).join(" ")
|
|
101
|
+
keywords: (item.keywords ?? []).join(" "),
|
|
102
|
+
raw: item
|
|
101
103
|
};
|
|
102
104
|
});
|
|
103
105
|
});
|
|
@@ -205,7 +207,8 @@ const remoteEntries = computed(() => {
|
|
|
205
207
|
key: String(idx),
|
|
206
208
|
label: labelOf(option),
|
|
207
209
|
value: valueOf(option),
|
|
208
|
-
keywords: keywordsOf(option)
|
|
210
|
+
keywords: keywordsOf(option),
|
|
211
|
+
raw: option
|
|
209
212
|
}));
|
|
210
213
|
});
|
|
211
214
|
const entries = computed(
|
|
@@ -244,6 +247,14 @@ const selectedKeySet = computed(() => new Set(selectedKeys.value));
|
|
|
244
247
|
const selectedEntries = computed(
|
|
245
248
|
() => selectedKeys.value.map((k) => entries.value.find((e) => e.key === k)).filter((e) => !!e)
|
|
246
249
|
);
|
|
250
|
+
publishSelection(
|
|
251
|
+
props.column.id,
|
|
252
|
+
() => selectedEntries.value.length > 0 ? selectedEntries.value : void 0,
|
|
253
|
+
{
|
|
254
|
+
identity: (list) => list.map((e) => e.key).join(" "),
|
|
255
|
+
raw: (list) => list.map((e) => e.raw)
|
|
256
|
+
}
|
|
257
|
+
);
|
|
247
258
|
const triggerLabel = computed(() => {
|
|
248
259
|
const arr = selectedEntries.value;
|
|
249
260
|
if (arr.length === 0) return "";
|
|
@@ -7,6 +7,7 @@ export declare const compatibilityDate: "2026-05-28";
|
|
|
7
7
|
export declare const metadata: {
|
|
8
8
|
readonly name: "多选";
|
|
9
9
|
readonly icon: "fluent:chevron-down-20-regular";
|
|
10
|
+
readonly selection: true;
|
|
10
11
|
};
|
|
11
12
|
export declare function itemSchema(configure: (env: Environment) => void): Schema.Struct<{
|
|
12
13
|
id: Schema.refine<string, typeof Schema.String>;
|
|
@@ -15,7 +15,10 @@ export const type = "com.shwfed.table.column.combobox-multi";
|
|
|
15
15
|
export const compatibilityDate = "2026-05-28";
|
|
16
16
|
export const metadata = {
|
|
17
17
|
name: "\u591A\u9009",
|
|
18
|
-
icon: "fluent:chevron-down-20-regular"
|
|
18
|
+
icon: "fluent:chevron-down-20-regular",
|
|
19
|
+
// Publishes its resolved options (array) to the per-row `selections` registry
|
|
20
|
+
// (runtime.vue), readable via `selections["<id>"]`.
|
|
21
|
+
selection: true
|
|
19
22
|
};
|
|
20
23
|
const isListType = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
21
24
|
const isKeywordsType = (actual) => actual === "dyn" || actual.startsWith("list") || actual.startsWith("optional");
|
|
@@ -87,8 +87,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
87
87
|
readonly target: string;
|
|
88
88
|
readonly operation: string;
|
|
89
89
|
}[] | undefined;
|
|
90
|
-
readonly accessor: string;
|
|
91
90
|
readonly successMessage?: string | undefined;
|
|
91
|
+
readonly accessor: string;
|
|
92
92
|
};
|
|
93
93
|
}) => any;
|
|
94
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -176,8 +176,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
176
176
|
readonly target: string;
|
|
177
177
|
readonly operation: string;
|
|
178
178
|
}[] | undefined;
|
|
179
|
-
readonly accessor: string;
|
|
180
179
|
readonly successMessage?: string | undefined;
|
|
180
|
+
readonly accessor: string;
|
|
181
181
|
};
|
|
182
182
|
}) => any) | undefined;
|
|
183
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -87,8 +87,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
87
87
|
readonly target: string;
|
|
88
88
|
readonly operation: string;
|
|
89
89
|
}[] | undefined;
|
|
90
|
-
readonly accessor: string;
|
|
91
90
|
readonly successMessage?: string | undefined;
|
|
91
|
+
readonly accessor: string;
|
|
92
92
|
};
|
|
93
93
|
}) => any;
|
|
94
94
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -176,8 +176,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
176
176
|
readonly target: string;
|
|
177
177
|
readonly operation: string;
|
|
178
178
|
}[] | undefined;
|
|
179
|
-
readonly accessor: string;
|
|
180
179
|
readonly successMessage?: string | undefined;
|
|
180
|
+
readonly accessor: string;
|
|
181
181
|
};
|
|
182
182
|
}) => any) | undefined;
|
|
183
183
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -9,6 +9,7 @@ import { useI18n } from "vue-i18n";
|
|
|
9
9
|
import { asRequest, fetchJsonOption } from "../../../../../share/request";
|
|
10
10
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
11
11
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
12
|
+
import { publishSelection } from "../../../../../utils/selections-registry";
|
|
12
13
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
13
14
|
import { dispatchTriggers, useEventChannel } from "../../../../../share/event-bus";
|
|
14
15
|
import {
|
|
@@ -97,7 +98,8 @@ const staticEntries = computed(() => {
|
|
|
97
98
|
value: item.value.value,
|
|
98
99
|
label: labelTpl ? safeInterpolate(labelTpl, {}) : "",
|
|
99
100
|
tooltip: tooltipTpl ? safeInterpolate(tooltipTpl, {}) : void 0,
|
|
100
|
-
keywords: (item.keywords ?? []).join(" ")
|
|
101
|
+
keywords: (item.keywords ?? []).join(" "),
|
|
102
|
+
raw: item
|
|
101
103
|
};
|
|
102
104
|
});
|
|
103
105
|
});
|
|
@@ -205,7 +207,8 @@ const remoteEntries = computed(() => {
|
|
|
205
207
|
key: String(idx),
|
|
206
208
|
label: labelOf(option),
|
|
207
209
|
value: valueOf(option),
|
|
208
|
-
keywords: keywordsOf(option)
|
|
210
|
+
keywords: keywordsOf(option),
|
|
211
|
+
raw: option
|
|
209
212
|
}));
|
|
210
213
|
});
|
|
211
214
|
const entries = computed(
|
|
@@ -232,6 +235,11 @@ const selectedEntry = computed(
|
|
|
232
235
|
);
|
|
233
236
|
const selectedKey = computed(() => selectedEntry.value?.key);
|
|
234
237
|
const selectedLabel = computed(() => selectedEntry.value?.label ?? "");
|
|
238
|
+
publishSelection(
|
|
239
|
+
props.column.id,
|
|
240
|
+
() => selectedEntry.value,
|
|
241
|
+
{ identity: (entry) => entry.key, raw: (entry) => entry.raw }
|
|
242
|
+
);
|
|
235
243
|
const open = ref(false);
|
|
236
244
|
const isDisabled = computed(
|
|
237
245
|
() => !isInteractive.value || isDisabledByConfig.value || pending.value
|
|
@@ -7,6 +7,7 @@ export declare const compatibilityDate: "2026-05-28";
|
|
|
7
7
|
export declare const metadata: {
|
|
8
8
|
readonly name: "单选";
|
|
9
9
|
readonly icon: "fluent:chevron-down-20-regular";
|
|
10
|
+
readonly selection: true;
|
|
10
11
|
};
|
|
11
12
|
export declare function itemSchema(configure: (env: Environment) => void): Schema.Struct<{
|
|
12
13
|
id: Schema.refine<string, typeof Schema.String>;
|
|
@@ -15,7 +15,10 @@ export const type = "com.shwfed.table.column.combobox-single";
|
|
|
15
15
|
export const compatibilityDate = "2026-05-28";
|
|
16
16
|
export const metadata = {
|
|
17
17
|
name: "\u5355\u9009",
|
|
18
|
-
icon: "fluent:chevron-down-20-regular"
|
|
18
|
+
icon: "fluent:chevron-down-20-regular",
|
|
19
|
+
// Publishes its resolved option (the source record) to the per-row
|
|
20
|
+
// `selections` registry (runtime.vue), readable via `selections["<id>"]`.
|
|
21
|
+
selection: true
|
|
19
22
|
};
|
|
20
23
|
const isListType = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
21
24
|
const isKeywordsType = (actual) => actual === "dyn" || actual.startsWith("list") || actual.startsWith("optional");
|
|
@@ -5,6 +5,7 @@ import { computed, ref, shallowRef, watch } from "vue";
|
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
7
7
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
|
+
import { publishSelection } from "../../../../../utils/selections-registry";
|
|
8
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
9
10
|
import { fetchJsonOption } from "../../../../../share/request";
|
|
10
11
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "../../../../ui/input-group";
|
|
@@ -203,6 +204,21 @@ const roots = computed(
|
|
|
203
204
|
nodeChildren: nodeChildrenList
|
|
204
205
|
})
|
|
205
206
|
);
|
|
207
|
+
const selectedLeaves = computed(
|
|
208
|
+
() => committedKeys.value.map((k) => {
|
|
209
|
+
const path = findWrappedPath(roots.value, k);
|
|
210
|
+
if (!path || path.length === 0) return void 0;
|
|
211
|
+
return path[path.length - 1];
|
|
212
|
+
}).filter((node) => node !== void 0)
|
|
213
|
+
);
|
|
214
|
+
publishSelection(
|
|
215
|
+
props.column.id,
|
|
216
|
+
() => selectedLeaves.value.length > 0 ? selectedLeaves.value : void 0,
|
|
217
|
+
{
|
|
218
|
+
identity: (list) => list.map((w) => w.key).join(" "),
|
|
219
|
+
raw: (list) => list.map((w) => w.raw)
|
|
220
|
+
}
|
|
221
|
+
);
|
|
206
222
|
const pendingKeys = ref(null);
|
|
207
223
|
const open = ref(false);
|
|
208
224
|
watch(open, (next, prev) => {
|
|
@@ -7,6 +7,7 @@ export declare const compatibilityDate: "2026-05-28";
|
|
|
7
7
|
export declare const metadata: {
|
|
8
8
|
readonly name: "下拉树(多选)";
|
|
9
9
|
readonly icon: "fluent:tree-evergreen-20-regular";
|
|
10
|
+
readonly selection: true;
|
|
10
11
|
};
|
|
11
12
|
export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
|
|
12
13
|
placeholder: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
@@ -13,7 +13,9 @@ export const type = "com.shwfed.table.column.tree-combobox-multi";
|
|
|
13
13
|
export const compatibilityDate = "2026-05-28";
|
|
14
14
|
export const metadata = {
|
|
15
15
|
name: "\u4E0B\u62C9\u6811\uFF08\u591A\u9009\uFF09",
|
|
16
|
-
icon: "fluent:tree-evergreen-20-regular"
|
|
16
|
+
icon: "fluent:tree-evergreen-20-regular",
|
|
17
|
+
// Publishes its resolved nodes (array) to the per-row `selections` registry (runtime.vue), readable via `selections["<id>"]`.
|
|
18
|
+
selection: true
|
|
17
19
|
};
|
|
18
20
|
const isListLike = (t) => t === "dyn" || t.startsWith("list") || t.startsWith("optional");
|
|
19
21
|
const isKeyType = (t) => t === "string" || t === "number" || t === "dyn";
|
|
@@ -5,6 +5,7 @@ import { computed, ref, shallowRef, watch } from "vue";
|
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
7
7
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
|
+
import { publishSelection } from "../../../../../utils/selections-registry";
|
|
8
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
9
10
|
import { fetchJsonOption } from "../../../../../share/request";
|
|
10
11
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "../../../../ui/input-group";
|
|
@@ -206,14 +207,21 @@ const roots = computed(
|
|
|
206
207
|
nodeChildren: nodeChildrenList
|
|
207
208
|
})
|
|
208
209
|
);
|
|
209
|
-
const
|
|
210
|
+
const selectedWrapped = computed(() => {
|
|
210
211
|
const k = model.value;
|
|
211
|
-
if (!k) return
|
|
212
|
+
if (!k) return void 0;
|
|
212
213
|
const path = findWrappedPath(roots.value, k);
|
|
213
|
-
if (!path || path.length === 0) return
|
|
214
|
-
|
|
215
|
-
return wrappedLabelText(leaf);
|
|
214
|
+
if (!path || path.length === 0) return void 0;
|
|
215
|
+
return path[path.length - 1];
|
|
216
216
|
});
|
|
217
|
+
const triggerLabel = computed(
|
|
218
|
+
() => selectedWrapped.value ? wrappedLabelText(selectedWrapped.value) : ""
|
|
219
|
+
);
|
|
220
|
+
publishSelection(
|
|
221
|
+
props.column.id,
|
|
222
|
+
() => selectedWrapped.value,
|
|
223
|
+
{ identity: (w) => w.key, raw: (w) => w.raw }
|
|
224
|
+
);
|
|
217
225
|
const initialExpanded = computed(() => {
|
|
218
226
|
if (!props.column.expandAll) return [];
|
|
219
227
|
const out = [];
|
|
@@ -7,6 +7,7 @@ export declare const compatibilityDate: "2026-05-28";
|
|
|
7
7
|
export declare const metadata: {
|
|
8
8
|
readonly name: "下拉树(单选)";
|
|
9
9
|
readonly icon: "fluent:tree-evergreen-20-regular";
|
|
10
|
+
readonly selection: true;
|
|
10
11
|
};
|
|
11
12
|
export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
|
|
12
13
|
placeholder: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
@@ -13,7 +13,9 @@ export const type = "com.shwfed.table.column.tree-combobox-single";
|
|
|
13
13
|
export const compatibilityDate = "2026-05-28";
|
|
14
14
|
export const metadata = {
|
|
15
15
|
name: "\u4E0B\u62C9\u6811\uFF08\u5355\u9009\uFF09",
|
|
16
|
-
icon: "fluent:tree-evergreen-20-regular"
|
|
16
|
+
icon: "fluent:tree-evergreen-20-regular",
|
|
17
|
+
// Publishes its resolved node (backend record) to the per-row `selections` registry (runtime.vue), readable via `selections["<id>"]`.
|
|
18
|
+
selection: true
|
|
17
19
|
};
|
|
18
20
|
const isListLike = (t) => t === "dyn" || t.startsWith("list") || t.startsWith("optional");
|
|
19
21
|
const isKeyType = (t) => t === "string" || t === "number" || t === "dyn";
|