@shwfed/config 2.10.3 → 2.10.5
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 +1600 -1317
- package/dist/module.json +1 -1
- package/dist/preview/assets/{FieldGroup.vue_vue_type_script_setup_true_lang-sT5i_dnE.js → FieldGroup.vue_vue_type_script_setup_true_lang-D-COryaS.js} +1 -1
- package/dist/preview/assets/{badge-ZFj45FMd.js → badge-Sb01O_E2.js} +1 -1
- package/dist/preview/assets/{config-3rP_f_3o.js → config-99L3dMcP.js} +1 -1
- package/dist/preview/assets/{config-cD091sze.js → config-BgJWNJ-L.js} +1 -1
- package/dist/preview/assets/{config-CEBzJOHo.js → config-BjSI3yTw.js} +1 -1
- package/dist/preview/assets/{config-BBvebIQw.js → config-BzMW9qCl.js} +1 -1
- package/dist/preview/assets/{config-BLesYihN.js → config-CEM0BCax.js} +1 -1
- package/dist/preview/assets/{config-D1uMzMiN.js → config-CtKXZjQl.js} +1 -1
- package/dist/preview/assets/{config-CSR1JNVB.js → config-CyRpAiSg.js} +1 -1
- package/dist/preview/assets/{config-Rz0II9u6.js → config-Cz3VQcLY.js} +1 -1
- package/dist/preview/assets/{config-2iinn_1E.js → config-D6BiWm3q.js} +1 -1
- package/dist/preview/assets/{config-lskK7grq.js → config-DA1Knc1V.js} +1 -1
- package/dist/preview/assets/{config-DfVc2Iy9.js → config-DGBuMIqU.js} +1 -1
- package/dist/preview/assets/{config-BwDPPmtn.js → config-DK0wxXG_.js} +1 -1
- package/dist/preview/assets/{config-DZPLqFqt.js → config-Du8kzY9H.js} +1 -1
- package/dist/preview/assets/{config-CgM75jSO.js → config-n4AGAnL-.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-Ce_NeQUa.js → definition.vue_vue_type_script_setup_true_lang-BtOF0dda.js} +1 -1
- package/dist/preview/assets/{index-_KA5_QIV.js → index-BOnw60vg.js} +1 -1
- package/dist/preview/assets/index-BZlqSG2R.js +763 -0
- package/dist/preview/assets/index-D3Az3yzR.css +1 -0
- package/dist/preview/assets/index-Rj5bF6fM.js +1 -0
- package/dist/preview/assets/{item-CBFJ6f6b.js → item-D7avZRKo.js} +1 -1
- package/dist/preview/assets/{runtime-DO9HS0Rb.js → runtime-BWlX7BAG.js} +1 -1
- package/dist/preview/assets/{runtime-BKqyqEeD.js → runtime-Bek88ifk.js} +1 -1
- package/dist/preview/assets/{runtime-CIc3k_jd.js → runtime-C9kOkTYc.js} +1 -1
- package/dist/preview/assets/{runtime-Q_isegB9.js → runtime-CSrgcLuC.js} +1 -1
- package/dist/preview/assets/{runtime-jWibKv1T.js → runtime-CWTz9Iy4.js} +1 -1
- package/dist/preview/assets/{runtime-Cu0RJn8g.js → runtime-D-HZWcV-.js} +1 -1
- package/dist/preview/assets/{runtime-CvMryNNx.js → runtime-DMsPs0Pz.js} +1 -1
- package/dist/preview/assets/{runtime-BIGEoc5L.js → runtime-DOqVHcvv.js} +1 -1
- package/dist/preview/assets/{runtime-DQXLscBz.js → runtime-Dhl0NpTL.js} +1 -1
- package/dist/preview/assets/{runtime-enspc5HG.js → runtime-Dxb1-gUN.js} +1 -1
- package/dist/preview/assets/{schema-meta-B5tln_XH.js → schema-meta-DXS0vi6v.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/block-layout-editor/index.vue +8 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +1 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.js +5 -1
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/config.d.vue.ts +223 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/config.vue +496 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/config.vue.d.ts +223 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/node-actions.d.vue.ts +10 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/node-actions.vue +25 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/node-actions.vue.d.ts +10 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.d.vue.ts +228 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.vue +355 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.vue.d.ts +228 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.d.ts +227 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.js +130 -0
- package/dist/runtime/components/config/utils/resolve.d.ts +16 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +134 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue +78 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +134 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/runtime.vue +24 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +132 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.js +14 -1
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +134 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue +77 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +134 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.vue +24 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +132 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +14 -1
- 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-23/com.shwfed.form.field.tree.multi/schema.js +2 -1
- 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.multi/schema.js +2 -1
- 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-26/com.shwfed.form.field.tree.combobox.single/schema.js +2 -1
- 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.multi/schema.js +2 -1
- 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.combobox.single/schema.js +2 -1
- 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.multi/schema.js +2 -1
- 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-05-28/com.shwfed.form.field.tree.single/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.vue +3 -3
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.vue +54 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- 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/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/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/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 +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/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 +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-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.js +2 -1
- 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-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.tree-combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.vue +543 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/runtime.vue +110 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +76 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +89 -0
- package/dist/runtime/components/ui/tree/Tree.d.vue.ts +13 -0
- package/dist/runtime/components/ui/tree/Tree.vue +8 -1
- package/dist/runtime/components/ui/tree/Tree.vue.d.ts +13 -0
- package/dist/runtime/components/ui/tree/TreeNode.d.vue.ts +2 -0
- package/dist/runtime/components/ui/tree/TreeNode.vue +5 -2
- package/dist/runtime/components/ui/tree/TreeNode.vue.d.ts +2 -0
- package/dist/runtime/share/slot-renderer.d.vue.ts +5 -0
- package/dist/runtime/share/slot-renderer.vue +43 -28
- package/dist/runtime/share/slot-renderer.vue.d.ts +5 -0
- package/dist/runtime/share/tree-node-var.d.ts +25 -0
- package/dist/runtime/share/tree-node-var.js +10 -0
- package/dist/runtime/vendor/cel-js/CLAUDE.md +1 -1
- package/dist/runtime/vendor/cel-js/PROMPT.md +6 -0
- package/dist/runtime/vendor/cel-js/lib/http-builtins.d.ts +0 -14
- package/dist/runtime/vendor/cel-js/lib/http-builtins.js +17 -0
- package/package.json +1 -1
- package/dist/preview/assets/index-Zc4Mcm3J.js +0 -761
- package/dist/preview/assets/index-pkoEF5dC.css +0 -1
- package/dist/preview/assets/index-snO3CfdE.js +0 -1
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts
CHANGED
|
@@ -53,6 +53,73 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
53
|
readonly warning?: boolean | undefined;
|
|
54
54
|
readonly when: string;
|
|
55
55
|
}[] | undefined;
|
|
56
|
+
readonly addon?: {
|
|
57
|
+
readonly size: "default" | "sm" | "xs";
|
|
58
|
+
readonly style?: string | undefined;
|
|
59
|
+
readonly gap: number;
|
|
60
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
61
|
+
readonly disabled?: string | undefined;
|
|
62
|
+
readonly id: string;
|
|
63
|
+
readonly title: readonly [{
|
|
64
|
+
readonly locale: "zh";
|
|
65
|
+
readonly message: string;
|
|
66
|
+
}, ...{
|
|
67
|
+
readonly locale: "en" | "ja" | "ko";
|
|
68
|
+
readonly message: string;
|
|
69
|
+
}[]];
|
|
70
|
+
readonly icon?: string | undefined;
|
|
71
|
+
readonly hidden?: string | undefined;
|
|
72
|
+
readonly tooltip?: readonly [{
|
|
73
|
+
readonly locale: "zh";
|
|
74
|
+
readonly message: string;
|
|
75
|
+
}, ...{
|
|
76
|
+
readonly locale: "en" | "ja" | "ko";
|
|
77
|
+
readonly message: string;
|
|
78
|
+
}[]] | undefined;
|
|
79
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
80
|
+
readonly action?: any;
|
|
81
|
+
readonly groupId: string;
|
|
82
|
+
readonly hideTitle?: boolean | undefined;
|
|
83
|
+
} | {
|
|
84
|
+
readonly id: string;
|
|
85
|
+
readonly title: readonly [{
|
|
86
|
+
readonly locale: "zh";
|
|
87
|
+
readonly message: string;
|
|
88
|
+
}, ...{
|
|
89
|
+
readonly locale: "en" | "ja" | "ko";
|
|
90
|
+
readonly message: string;
|
|
91
|
+
}[]];
|
|
92
|
+
readonly icon?: string | undefined;
|
|
93
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
94
|
+
readonly disabled?: string | undefined;
|
|
95
|
+
readonly id: string;
|
|
96
|
+
readonly title: readonly [{
|
|
97
|
+
readonly locale: "zh";
|
|
98
|
+
readonly message: string;
|
|
99
|
+
}, ...{
|
|
100
|
+
readonly locale: "en" | "ja" | "ko";
|
|
101
|
+
readonly message: string;
|
|
102
|
+
}[]];
|
|
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
|
+
})[];
|
|
115
|
+
readonly groupId: string;
|
|
116
|
+
readonly hideTitle?: boolean | undefined;
|
|
117
|
+
})[];
|
|
118
|
+
readonly groups: readonly {
|
|
119
|
+
readonly id: string;
|
|
120
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
121
|
+
}[];
|
|
122
|
+
} | undefined;
|
|
56
123
|
readonly precision?: number | undefined;
|
|
57
124
|
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
58
125
|
readonly valueAsString?: boolean | undefined;
|
|
@@ -108,6 +175,73 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
175
|
readonly warning?: boolean | undefined;
|
|
109
176
|
readonly when: string;
|
|
110
177
|
}[] | undefined;
|
|
178
|
+
readonly addon?: {
|
|
179
|
+
readonly size: "default" | "sm" | "xs";
|
|
180
|
+
readonly style?: string | undefined;
|
|
181
|
+
readonly gap: number;
|
|
182
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
183
|
+
readonly disabled?: string | undefined;
|
|
184
|
+
readonly id: string;
|
|
185
|
+
readonly title: readonly [{
|
|
186
|
+
readonly locale: "zh";
|
|
187
|
+
readonly message: string;
|
|
188
|
+
}, ...{
|
|
189
|
+
readonly locale: "en" | "ja" | "ko";
|
|
190
|
+
readonly message: string;
|
|
191
|
+
}[]];
|
|
192
|
+
readonly icon?: string | undefined;
|
|
193
|
+
readonly hidden?: string | undefined;
|
|
194
|
+
readonly tooltip?: readonly [{
|
|
195
|
+
readonly locale: "zh";
|
|
196
|
+
readonly message: string;
|
|
197
|
+
}, ...{
|
|
198
|
+
readonly locale: "en" | "ja" | "ko";
|
|
199
|
+
readonly message: string;
|
|
200
|
+
}[]] | undefined;
|
|
201
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
202
|
+
readonly action?: any;
|
|
203
|
+
readonly groupId: string;
|
|
204
|
+
readonly hideTitle?: boolean | undefined;
|
|
205
|
+
} | {
|
|
206
|
+
readonly id: string;
|
|
207
|
+
readonly title: readonly [{
|
|
208
|
+
readonly locale: "zh";
|
|
209
|
+
readonly message: string;
|
|
210
|
+
}, ...{
|
|
211
|
+
readonly locale: "en" | "ja" | "ko";
|
|
212
|
+
readonly message: string;
|
|
213
|
+
}[]];
|
|
214
|
+
readonly icon?: string | undefined;
|
|
215
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
216
|
+
readonly disabled?: string | undefined;
|
|
217
|
+
readonly id: string;
|
|
218
|
+
readonly title: readonly [{
|
|
219
|
+
readonly locale: "zh";
|
|
220
|
+
readonly message: string;
|
|
221
|
+
}, ...{
|
|
222
|
+
readonly locale: "en" | "ja" | "ko";
|
|
223
|
+
readonly message: string;
|
|
224
|
+
}[]];
|
|
225
|
+
readonly icon?: string | undefined;
|
|
226
|
+
readonly hidden?: string | undefined;
|
|
227
|
+
readonly tooltip?: readonly [{
|
|
228
|
+
readonly locale: "zh";
|
|
229
|
+
readonly message: string;
|
|
230
|
+
}, ...{
|
|
231
|
+
readonly locale: "en" | "ja" | "ko";
|
|
232
|
+
readonly message: string;
|
|
233
|
+
}[]] | undefined;
|
|
234
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
235
|
+
readonly action?: any;
|
|
236
|
+
})[];
|
|
237
|
+
readonly groupId: string;
|
|
238
|
+
readonly hideTitle?: boolean | undefined;
|
|
239
|
+
})[];
|
|
240
|
+
readonly groups: readonly {
|
|
241
|
+
readonly id: string;
|
|
242
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
243
|
+
}[];
|
|
244
|
+
} | undefined;
|
|
111
245
|
readonly precision?: number | undefined;
|
|
112
246
|
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
113
247
|
readonly valueAsString?: boolean | undefined;
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.vue
CHANGED
|
@@ -9,6 +9,7 @@ import { getLocalizedText } from "../../../../../share/locale";
|
|
|
9
9
|
import { Field, FieldLabel, FieldMessages } from "../../../../ui/field";
|
|
10
10
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupNumberField } from "../../../../ui/input-group";
|
|
11
11
|
import { Markdown } from "../../../../ui/markdown";
|
|
12
|
+
import ShwfedActions from "../../../../actions/components/group.vue";
|
|
12
13
|
import { DEFAULT_FIELD_ORIENTATION } from "../../../utils/common";
|
|
13
14
|
import { useFieldValue } from "../../../utils/field-value";
|
|
14
15
|
import { useFieldValidation } from "../../../utils/validation";
|
|
@@ -93,6 +94,18 @@ function applyRounding(n, precision, mode) {
|
|
|
93
94
|
return Math.round(n * factor) / factor;
|
|
94
95
|
}
|
|
95
96
|
}
|
|
97
|
+
const addonConfig = computed(() => {
|
|
98
|
+
const addon = props.config.addon;
|
|
99
|
+
if (!addon || addon.items.length === 0) return null;
|
|
100
|
+
return {
|
|
101
|
+
kind: "shwfed.component.action",
|
|
102
|
+
size: addon.size ?? "xs",
|
|
103
|
+
gap: addon.gap,
|
|
104
|
+
style: addon.style,
|
|
105
|
+
groups: addon.groups.map((group) => ({ ...group, variant: group.variant ?? "ghost" })),
|
|
106
|
+
items: addon.items
|
|
107
|
+
};
|
|
108
|
+
});
|
|
96
109
|
const showClear = computed(() => !isDisabled.value && draft.value !== void 0);
|
|
97
110
|
function handleClear() {
|
|
98
111
|
draft.value = void 0;
|
|
@@ -179,6 +192,13 @@ async function onBlur() {
|
|
|
179
192
|
<Icon icon="fluent:dismiss-20-regular" />
|
|
180
193
|
</InputGroupButton>
|
|
181
194
|
</InputGroupAddon>
|
|
195
|
+
<InputGroupAddon
|
|
196
|
+
v-if="addonConfig"
|
|
197
|
+
align="inline-end"
|
|
198
|
+
class="field-addon-actions"
|
|
199
|
+
>
|
|
200
|
+
<ShwfedActions :config="addonConfig" />
|
|
201
|
+
</InputGroupAddon>
|
|
182
202
|
</InputGroup>
|
|
183
203
|
<FieldMessages
|
|
184
204
|
v-if="visible"
|
|
@@ -187,3 +207,7 @@ async function onBlur() {
|
|
|
187
207
|
/>
|
|
188
208
|
</Field>
|
|
189
209
|
</template>
|
|
210
|
+
|
|
211
|
+
<style scoped>
|
|
212
|
+
.field-addon-actions :deep([data-slot=buttons]){align-items:center;gap:.125rem}.field-addon-actions :deep([data-slot=buttons-dropdown-trigger]),.field-addon-actions :deep([data-slot=buttons-item]){border-radius:.125rem;color:#71717a;height:1.5rem;min-width:1.5rem;padding:0}.field-addon-actions :deep([data-slot=buttons-dropdown-trigger]:hover:not(:disabled)),.field-addon-actions :deep([data-slot=buttons-item]:hover:not(:disabled)){color:#3f3f46}
|
|
213
|
+
</style>
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts
CHANGED
|
@@ -52,6 +52,138 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
52
52
|
valueAsString: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
53
53
|
min: Schema.optional<Schema.Schema<string, string, never>>;
|
|
54
54
|
max: Schema.optional<Schema.Schema<string, string, never>>;
|
|
55
|
+
addon: Schema.optional<Schema.Struct<{
|
|
56
|
+
groups: Schema.optionalWith<Schema.Array$<Schema.Struct<{
|
|
57
|
+
id: Schema.refine<string, typeof Schema.String>;
|
|
58
|
+
variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
|
|
59
|
+
}>>, {
|
|
60
|
+
default: () => never[];
|
|
61
|
+
}>;
|
|
62
|
+
items: Schema.optionalWith<Schema.Array$<Schema.Schema<import("../../../../actions/schema.js").RegistryItemValue | {
|
|
63
|
+
readonly disabled?: string | undefined;
|
|
64
|
+
readonly id: string;
|
|
65
|
+
readonly title: readonly [{
|
|
66
|
+
readonly locale: "zh";
|
|
67
|
+
readonly message: string;
|
|
68
|
+
}, ...{
|
|
69
|
+
readonly locale: "en" | "ja" | "ko";
|
|
70
|
+
readonly message: string;
|
|
71
|
+
}[]];
|
|
72
|
+
readonly icon?: string | undefined;
|
|
73
|
+
readonly hidden?: string | undefined;
|
|
74
|
+
readonly tooltip?: readonly [{
|
|
75
|
+
readonly locale: "zh";
|
|
76
|
+
readonly message: string;
|
|
77
|
+
}, ...{
|
|
78
|
+
readonly locale: "en" | "ja" | "ko";
|
|
79
|
+
readonly message: string;
|
|
80
|
+
}[]] | undefined;
|
|
81
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
82
|
+
readonly action?: any;
|
|
83
|
+
readonly groupId: string;
|
|
84
|
+
readonly hideTitle?: boolean | undefined;
|
|
85
|
+
} | {
|
|
86
|
+
readonly id: string;
|
|
87
|
+
readonly title: readonly [{
|
|
88
|
+
readonly locale: "zh";
|
|
89
|
+
readonly message: string;
|
|
90
|
+
}, ...{
|
|
91
|
+
readonly locale: "en" | "ja" | "ko";
|
|
92
|
+
readonly message: string;
|
|
93
|
+
}[]];
|
|
94
|
+
readonly icon?: string | undefined;
|
|
95
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
96
|
+
readonly disabled?: string | undefined;
|
|
97
|
+
readonly id: string;
|
|
98
|
+
readonly title: readonly [{
|
|
99
|
+
readonly locale: "zh";
|
|
100
|
+
readonly message: string;
|
|
101
|
+
}, ...{
|
|
102
|
+
readonly locale: "en" | "ja" | "ko";
|
|
103
|
+
readonly message: string;
|
|
104
|
+
}[]];
|
|
105
|
+
readonly icon?: string | undefined;
|
|
106
|
+
readonly hidden?: string | undefined;
|
|
107
|
+
readonly tooltip?: readonly [{
|
|
108
|
+
readonly locale: "zh";
|
|
109
|
+
readonly message: string;
|
|
110
|
+
}, ...{
|
|
111
|
+
readonly locale: "en" | "ja" | "ko";
|
|
112
|
+
readonly message: string;
|
|
113
|
+
}[]] | undefined;
|
|
114
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
115
|
+
readonly action?: any;
|
|
116
|
+
})[];
|
|
117
|
+
readonly groupId: string;
|
|
118
|
+
readonly hideTitle?: boolean | undefined;
|
|
119
|
+
}, import("../../../../actions/schema.js").RegistryItemValue | {
|
|
120
|
+
readonly id: string;
|
|
121
|
+
readonly title: readonly [{
|
|
122
|
+
readonly locale: "zh";
|
|
123
|
+
readonly message: string;
|
|
124
|
+
}, ...{
|
|
125
|
+
readonly locale: "en" | "ja" | "ko";
|
|
126
|
+
readonly message: string;
|
|
127
|
+
}[]];
|
|
128
|
+
readonly groupId: string;
|
|
129
|
+
readonly disabled?: string | undefined;
|
|
130
|
+
readonly icon?: string | undefined;
|
|
131
|
+
readonly hidden?: string | undefined;
|
|
132
|
+
readonly tooltip?: readonly [{
|
|
133
|
+
readonly locale: "zh";
|
|
134
|
+
readonly message: string;
|
|
135
|
+
}, ...{
|
|
136
|
+
readonly locale: "en" | "ja" | "ko";
|
|
137
|
+
readonly message: string;
|
|
138
|
+
}[]] | undefined;
|
|
139
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
140
|
+
readonly action?: any;
|
|
141
|
+
readonly hideTitle?: boolean | undefined;
|
|
142
|
+
} | {
|
|
143
|
+
readonly id: string;
|
|
144
|
+
readonly title: readonly [{
|
|
145
|
+
readonly locale: "zh";
|
|
146
|
+
readonly message: string;
|
|
147
|
+
}, ...{
|
|
148
|
+
readonly locale: "en" | "ja" | "ko";
|
|
149
|
+
readonly message: string;
|
|
150
|
+
}[]];
|
|
151
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
152
|
+
readonly id: string;
|
|
153
|
+
readonly title: readonly [{
|
|
154
|
+
readonly locale: "zh";
|
|
155
|
+
readonly message: string;
|
|
156
|
+
}, ...{
|
|
157
|
+
readonly locale: "en" | "ja" | "ko";
|
|
158
|
+
readonly message: string;
|
|
159
|
+
}[]];
|
|
160
|
+
readonly disabled?: string | undefined;
|
|
161
|
+
readonly icon?: string | undefined;
|
|
162
|
+
readonly hidden?: string | undefined;
|
|
163
|
+
readonly tooltip?: readonly [{
|
|
164
|
+
readonly locale: "zh";
|
|
165
|
+
readonly message: string;
|
|
166
|
+
}, ...{
|
|
167
|
+
readonly locale: "en" | "ja" | "ko";
|
|
168
|
+
readonly message: string;
|
|
169
|
+
}[]] | undefined;
|
|
170
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
171
|
+
readonly action?: any;
|
|
172
|
+
})[];
|
|
173
|
+
readonly groupId: string;
|
|
174
|
+
readonly icon?: string | undefined;
|
|
175
|
+
readonly hideTitle?: boolean | undefined;
|
|
176
|
+
}, never>>, {
|
|
177
|
+
default: () => never[];
|
|
178
|
+
}>;
|
|
179
|
+
size: Schema.optionalWith<Schema.Literal<["default", "sm", "xs"]>, {
|
|
180
|
+
default: () => "default";
|
|
181
|
+
}>;
|
|
182
|
+
gap: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
183
|
+
default: () => number;
|
|
184
|
+
}>;
|
|
185
|
+
style: Schema.optional<typeof Schema.String>;
|
|
186
|
+
}>>;
|
|
55
187
|
id: Schema.refine<string, typeof Schema.String>;
|
|
56
188
|
displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
57
189
|
hidden: Schema.optional<Schema.Schema<string, string, never>>;
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { Expression } from "../../../../../share/expression.js";
|
|
3
3
|
import { Locale } from "../../../../../share/locale.js";
|
|
4
|
+
import { ActionSchemaFields } from "../../../../actions/schema.js";
|
|
4
5
|
import { commonFieldFields, derivedField, FieldOrientationSchema } from "../../../utils/common.js";
|
|
6
|
+
function AddonActions(configure) {
|
|
7
|
+
const { groups, items, ...rest } = ActionSchemaFields(configure).fields;
|
|
8
|
+
return Schema.Struct({
|
|
9
|
+
...rest,
|
|
10
|
+
groups: Schema.optionalWith(groups, { default: () => [] }),
|
|
11
|
+
items: Schema.optionalWith(items, { default: () => [] })
|
|
12
|
+
}).annotations({
|
|
13
|
+
title: "\u8F93\u5165\u6846\u5185\u6309\u94AE",
|
|
14
|
+
description: "\u5728\u8F93\u5165\u6846\u53F3\u4FA7\u5185\u5D4C\u4E00\u7EC4\u64CD\u4F5C\u6309\u94AE"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
5
17
|
export const type = "com.shwfed.form.field.number";
|
|
6
18
|
export const compatibilityDate = "2026-04-28";
|
|
7
19
|
export const metadata = {
|
|
@@ -66,7 +78,8 @@ export function schema(configure) {
|
|
|
66
78
|
max: Schema.optional(CelNumber.annotations({
|
|
67
79
|
title: "\u6700\u5927\u503C",
|
|
68
80
|
description: "\u5141\u8BB8\u8F93\u5165\u7684\u6700\u5927\u503C\u8868\u8FBE\u5F0F\uFF1B\u7559\u7A7A\u65F6\u4E0D\u9650\u5236\u4E0A\u9650"
|
|
69
|
-
}))
|
|
81
|
+
})),
|
|
82
|
+
addon: Schema.optional(AddonActions(configure))
|
|
70
83
|
}).annotations({
|
|
71
84
|
title: "NumberField",
|
|
72
85
|
description: "\u6570\u503C\u8F93\u5165"
|
|
@@ -47,17 +47,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
47
47
|
readonly request?: string | undefined;
|
|
48
48
|
};
|
|
49
49
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
50
|
-
readonly validations?: readonly {
|
|
51
|
-
readonly message: readonly [{
|
|
52
|
-
readonly locale: "zh";
|
|
53
|
-
readonly message: string;
|
|
54
|
-
}, ...{
|
|
55
|
-
readonly locale: "en" | "ja" | "ko";
|
|
56
|
-
readonly message: string;
|
|
57
|
-
}[]];
|
|
58
|
-
readonly warning?: boolean | undefined;
|
|
59
|
-
readonly when: string;
|
|
60
|
-
}[] | undefined;
|
|
61
50
|
readonly nodeKey: string;
|
|
62
51
|
readonly nodeChildren: string;
|
|
63
52
|
readonly nodeLabel: readonly [{
|
|
@@ -76,6 +65,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
76
65
|
}[]] | undefined;
|
|
77
66
|
readonly nodeSelectable?: string | undefined;
|
|
78
67
|
readonly expandAll: boolean;
|
|
68
|
+
readonly validations?: readonly {
|
|
69
|
+
readonly message: readonly [{
|
|
70
|
+
readonly locale: "zh";
|
|
71
|
+
readonly message: string;
|
|
72
|
+
}, ...{
|
|
73
|
+
readonly locale: "en" | "ja" | "ko";
|
|
74
|
+
readonly message: string;
|
|
75
|
+
}[]];
|
|
76
|
+
readonly warning?: boolean | undefined;
|
|
77
|
+
readonly when: string;
|
|
78
|
+
}[] | undefined;
|
|
79
79
|
}) => any;
|
|
80
80
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
81
81
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -122,17 +122,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
122
122
|
readonly request?: string | undefined;
|
|
123
123
|
};
|
|
124
124
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
125
|
-
readonly validations?: readonly {
|
|
126
|
-
readonly message: readonly [{
|
|
127
|
-
readonly locale: "zh";
|
|
128
|
-
readonly message: string;
|
|
129
|
-
}, ...{
|
|
130
|
-
readonly locale: "en" | "ja" | "ko";
|
|
131
|
-
readonly message: string;
|
|
132
|
-
}[]];
|
|
133
|
-
readonly warning?: boolean | undefined;
|
|
134
|
-
readonly when: string;
|
|
135
|
-
}[] | undefined;
|
|
136
125
|
readonly nodeKey: string;
|
|
137
126
|
readonly nodeChildren: string;
|
|
138
127
|
readonly nodeLabel: readonly [{
|
|
@@ -151,6 +140,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
151
140
|
}[]] | undefined;
|
|
152
141
|
readonly nodeSelectable?: string | undefined;
|
|
153
142
|
readonly expandAll: boolean;
|
|
143
|
+
readonly validations?: readonly {
|
|
144
|
+
readonly message: readonly [{
|
|
145
|
+
readonly locale: "zh";
|
|
146
|
+
readonly message: string;
|
|
147
|
+
}, ...{
|
|
148
|
+
readonly locale: "en" | "ja" | "ko";
|
|
149
|
+
readonly message: string;
|
|
150
|
+
}[]];
|
|
151
|
+
readonly warning?: boolean | undefined;
|
|
152
|
+
readonly when: string;
|
|
153
|
+
}[] | undefined;
|
|
154
154
|
}) => any) | undefined;
|
|
155
155
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
156
156
|
declare const _default: typeof __VLS_export;
|
|
@@ -47,17 +47,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
47
47
|
readonly request?: string | undefined;
|
|
48
48
|
};
|
|
49
49
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
50
|
-
readonly validations?: readonly {
|
|
51
|
-
readonly message: readonly [{
|
|
52
|
-
readonly locale: "zh";
|
|
53
|
-
readonly message: string;
|
|
54
|
-
}, ...{
|
|
55
|
-
readonly locale: "en" | "ja" | "ko";
|
|
56
|
-
readonly message: string;
|
|
57
|
-
}[]];
|
|
58
|
-
readonly warning?: boolean | undefined;
|
|
59
|
-
readonly when: string;
|
|
60
|
-
}[] | undefined;
|
|
61
50
|
readonly nodeKey: string;
|
|
62
51
|
readonly nodeChildren: string;
|
|
63
52
|
readonly nodeLabel: readonly [{
|
|
@@ -76,6 +65,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
76
65
|
}[]] | undefined;
|
|
77
66
|
readonly nodeSelectable?: string | undefined;
|
|
78
67
|
readonly expandAll: boolean;
|
|
68
|
+
readonly validations?: readonly {
|
|
69
|
+
readonly message: readonly [{
|
|
70
|
+
readonly locale: "zh";
|
|
71
|
+
readonly message: string;
|
|
72
|
+
}, ...{
|
|
73
|
+
readonly locale: "en" | "ja" | "ko";
|
|
74
|
+
readonly message: string;
|
|
75
|
+
}[]];
|
|
76
|
+
readonly warning?: boolean | undefined;
|
|
77
|
+
readonly when: string;
|
|
78
|
+
}[] | undefined;
|
|
79
79
|
}) => any;
|
|
80
80
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
81
81
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -122,17 +122,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
122
122
|
readonly request?: string | undefined;
|
|
123
123
|
};
|
|
124
124
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
125
|
-
readonly validations?: readonly {
|
|
126
|
-
readonly message: readonly [{
|
|
127
|
-
readonly locale: "zh";
|
|
128
|
-
readonly message: string;
|
|
129
|
-
}, ...{
|
|
130
|
-
readonly locale: "en" | "ja" | "ko";
|
|
131
|
-
readonly message: string;
|
|
132
|
-
}[]];
|
|
133
|
-
readonly warning?: boolean | undefined;
|
|
134
|
-
readonly when: string;
|
|
135
|
-
}[] | undefined;
|
|
136
125
|
readonly nodeKey: string;
|
|
137
126
|
readonly nodeChildren: string;
|
|
138
127
|
readonly nodeLabel: readonly [{
|
|
@@ -151,6 +140,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
151
140
|
}[]] | undefined;
|
|
152
141
|
readonly nodeSelectable?: string | undefined;
|
|
153
142
|
readonly expandAll: boolean;
|
|
143
|
+
readonly validations?: readonly {
|
|
144
|
+
readonly message: readonly [{
|
|
145
|
+
readonly locale: "zh";
|
|
146
|
+
readonly message: string;
|
|
147
|
+
}, ...{
|
|
148
|
+
readonly locale: "en" | "ja" | "ko";
|
|
149
|
+
readonly message: string;
|
|
150
|
+
}[]];
|
|
151
|
+
readonly warning?: boolean | undefined;
|
|
152
|
+
readonly when: string;
|
|
153
|
+
}[] | undefined;
|
|
154
154
|
}) => any) | undefined;
|
|
155
155
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
156
156
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { Expression, LocaleMarkdown } from "../../../../../share/expression.js";
|
|
3
|
+
import { registerNodeVariableIfAbsent } from "../../../../../share/tree-node-var.js";
|
|
3
4
|
import { Locale } from "../../../../../share/locale.js";
|
|
4
5
|
import { DataSource } from "../../../../table/schema.js";
|
|
5
6
|
import { commonFieldFields, derivedField } from "../../../utils/common.js";
|
|
@@ -15,7 +16,7 @@ export function schema(configure) {
|
|
|
15
16
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
16
17
|
const nodeConfigure = (env) => {
|
|
17
18
|
configure(env);
|
|
18
|
-
env
|
|
19
|
+
registerNodeVariableIfAbsent(env);
|
|
19
20
|
};
|
|
20
21
|
const CelNodeKey = Expression({
|
|
21
22
|
configure: nodeConfigure,
|
|
@@ -44,17 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
44
44
|
readonly request?: string | undefined;
|
|
45
45
|
};
|
|
46
46
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
47
|
-
readonly validations?: readonly {
|
|
48
|
-
readonly message: readonly [{
|
|
49
|
-
readonly locale: "zh";
|
|
50
|
-
readonly message: string;
|
|
51
|
-
}, ...{
|
|
52
|
-
readonly locale: "en" | "ja" | "ko";
|
|
53
|
-
readonly message: string;
|
|
54
|
-
}[]];
|
|
55
|
-
readonly warning?: boolean | undefined;
|
|
56
|
-
readonly when: string;
|
|
57
|
-
}[] | undefined;
|
|
58
47
|
readonly nodeKey: string;
|
|
59
48
|
readonly nodeChildren: string;
|
|
60
49
|
readonly nodeLabel: readonly [{
|
|
@@ -73,6 +62,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
73
62
|
}[]] | undefined;
|
|
74
63
|
readonly nodeSelectable?: string | undefined;
|
|
75
64
|
readonly expandAll: boolean;
|
|
65
|
+
readonly validations?: readonly {
|
|
66
|
+
readonly message: readonly [{
|
|
67
|
+
readonly locale: "zh";
|
|
68
|
+
readonly message: string;
|
|
69
|
+
}, ...{
|
|
70
|
+
readonly locale: "en" | "ja" | "ko";
|
|
71
|
+
readonly message: string;
|
|
72
|
+
}[]];
|
|
73
|
+
readonly warning?: boolean | undefined;
|
|
74
|
+
readonly when: string;
|
|
75
|
+
}[] | undefined;
|
|
76
76
|
}) => any;
|
|
77
77
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
78
78
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -116,17 +116,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
116
116
|
readonly request?: string | undefined;
|
|
117
117
|
};
|
|
118
118
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
119
|
-
readonly validations?: readonly {
|
|
120
|
-
readonly message: readonly [{
|
|
121
|
-
readonly locale: "zh";
|
|
122
|
-
readonly message: string;
|
|
123
|
-
}, ...{
|
|
124
|
-
readonly locale: "en" | "ja" | "ko";
|
|
125
|
-
readonly message: string;
|
|
126
|
-
}[]];
|
|
127
|
-
readonly warning?: boolean | undefined;
|
|
128
|
-
readonly when: string;
|
|
129
|
-
}[] | undefined;
|
|
130
119
|
readonly nodeKey: string;
|
|
131
120
|
readonly nodeChildren: string;
|
|
132
121
|
readonly nodeLabel: readonly [{
|
|
@@ -145,6 +134,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
145
134
|
}[]] | undefined;
|
|
146
135
|
readonly nodeSelectable?: string | undefined;
|
|
147
136
|
readonly expandAll: boolean;
|
|
137
|
+
readonly validations?: readonly {
|
|
138
|
+
readonly message: readonly [{
|
|
139
|
+
readonly locale: "zh";
|
|
140
|
+
readonly message: string;
|
|
141
|
+
}, ...{
|
|
142
|
+
readonly locale: "en" | "ja" | "ko";
|
|
143
|
+
readonly message: string;
|
|
144
|
+
}[]];
|
|
145
|
+
readonly warning?: boolean | undefined;
|
|
146
|
+
readonly when: string;
|
|
147
|
+
}[] | undefined;
|
|
148
148
|
}) => any) | undefined;
|
|
149
149
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
150
150
|
declare const _default: typeof __VLS_export;
|
|
@@ -44,17 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
44
44
|
readonly request?: string | undefined;
|
|
45
45
|
};
|
|
46
46
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
47
|
-
readonly validations?: readonly {
|
|
48
|
-
readonly message: readonly [{
|
|
49
|
-
readonly locale: "zh";
|
|
50
|
-
readonly message: string;
|
|
51
|
-
}, ...{
|
|
52
|
-
readonly locale: "en" | "ja" | "ko";
|
|
53
|
-
readonly message: string;
|
|
54
|
-
}[]];
|
|
55
|
-
readonly warning?: boolean | undefined;
|
|
56
|
-
readonly when: string;
|
|
57
|
-
}[] | undefined;
|
|
58
47
|
readonly nodeKey: string;
|
|
59
48
|
readonly nodeChildren: string;
|
|
60
49
|
readonly nodeLabel: readonly [{
|
|
@@ -73,6 +62,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
73
62
|
}[]] | undefined;
|
|
74
63
|
readonly nodeSelectable?: string | undefined;
|
|
75
64
|
readonly expandAll: boolean;
|
|
65
|
+
readonly validations?: readonly {
|
|
66
|
+
readonly message: readonly [{
|
|
67
|
+
readonly locale: "zh";
|
|
68
|
+
readonly message: string;
|
|
69
|
+
}, ...{
|
|
70
|
+
readonly locale: "en" | "ja" | "ko";
|
|
71
|
+
readonly message: string;
|
|
72
|
+
}[]];
|
|
73
|
+
readonly warning?: boolean | undefined;
|
|
74
|
+
readonly when: string;
|
|
75
|
+
}[] | undefined;
|
|
76
76
|
}) => any;
|
|
77
77
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
78
78
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -116,17 +116,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
116
116
|
readonly request?: string | undefined;
|
|
117
117
|
};
|
|
118
118
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
119
|
-
readonly validations?: readonly {
|
|
120
|
-
readonly message: readonly [{
|
|
121
|
-
readonly locale: "zh";
|
|
122
|
-
readonly message: string;
|
|
123
|
-
}, ...{
|
|
124
|
-
readonly locale: "en" | "ja" | "ko";
|
|
125
|
-
readonly message: string;
|
|
126
|
-
}[]];
|
|
127
|
-
readonly warning?: boolean | undefined;
|
|
128
|
-
readonly when: string;
|
|
129
|
-
}[] | undefined;
|
|
130
119
|
readonly nodeKey: string;
|
|
131
120
|
readonly nodeChildren: string;
|
|
132
121
|
readonly nodeLabel: readonly [{
|
|
@@ -145,6 +134,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
145
134
|
}[]] | undefined;
|
|
146
135
|
readonly nodeSelectable?: string | undefined;
|
|
147
136
|
readonly expandAll: boolean;
|
|
137
|
+
readonly validations?: readonly {
|
|
138
|
+
readonly message: readonly [{
|
|
139
|
+
readonly locale: "zh";
|
|
140
|
+
readonly message: string;
|
|
141
|
+
}, ...{
|
|
142
|
+
readonly locale: "en" | "ja" | "ko";
|
|
143
|
+
readonly message: string;
|
|
144
|
+
}[]];
|
|
145
|
+
readonly warning?: boolean | undefined;
|
|
146
|
+
readonly when: string;
|
|
147
|
+
}[] | undefined;
|
|
148
148
|
}) => any) | undefined;
|
|
149
149
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
150
150
|
declare const _default: typeof __VLS_export;
|