@shwfed/config 2.3.28 → 2.3.29
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 +3124 -1268
- package/dist/module.json +1 -1
- package/dist/preview/assets/{config-fvkC2rB8.js → config-6IiXCmyu.js} +1 -1
- package/dist/preview/assets/{config--PcXQV_r.js → config-BJzUh1_G.js} +1 -1
- package/dist/preview/assets/{config-B5avpKJE.js → config-Bl80ye-i.js} +1 -1
- package/dist/preview/assets/{config-DDfTl9Cs.js → config-CZOeZ8ty.js} +1 -1
- package/dist/preview/assets/{config-CJHPt8Gx.js → config-DaZD4ZSa.js} +1 -1
- package/dist/preview/assets/{config-CNo3isHa.js → config-DhsbcNzx.js} +1 -1
- package/dist/preview/assets/{config-5KVDXgUF.js → config-Diuyh0Ex.js} +1 -1
- package/dist/preview/assets/{config-D0_1yZdF.js → config-aK67Rsw5.js} +1 -1
- package/dist/preview/assets/{config-CQHS6cZe.js → config-rpX_Mc6I.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-RM-qDh0R.js → definition.vue_vue_type_script_setup_true_lang-C_jU8d47.js} +1 -1
- package/dist/preview/assets/{index-a2QwAots.css → index-2eQR4s3q.css} +1 -1
- package/dist/preview/assets/index-DEF3_MKr.js +659 -0
- package/dist/preview/assets/index-Df-thth9.js +1 -0
- package/dist/preview/assets/{runtime-Dr_10emf.js → runtime-3p1K6te5.js} +1 -1
- package/dist/preview/assets/{runtime-C_XX6a0C.js → runtime-BcLnafic.js} +1 -1
- package/dist/preview/assets/{runtime-CtqwtTE_.js → runtime-CSaV-359.js} +1 -1
- package/dist/preview/assets/{runtime-CCbyrqQT.js → runtime-CjR8Vi5N.js} +1 -1
- package/dist/preview/assets/{runtime-BGTWf-O7.js → runtime-D_fJCKX_.js} +1 -1
- package/dist/preview/assets/{runtime-BPjZQmcY.js → runtime-DpeCgGEG.js} +1 -1
- package/dist/preview/assets/{runtime-DcrzodsN.js → runtime-K2a1x0TJ.js} +1 -1
- package/dist/preview/assets/{runtime-Dy4ZmQ-n.js → runtime-g9Zu3VNQ.js} +1 -1
- package/dist/preview/assets/{runtime-Bq3fmxeF.js → runtime-jTnh_6Dm.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/block-layout-editor/index.d.vue.ts +10 -2
- package/dist/runtime/components/block-layout-editor/index.vue +44 -8
- package/dist/runtime/components/block-layout-editor/index.vue.d.ts +10 -2
- package/dist/runtime/components/config/config.vue +35 -0
- package/dist/runtime/components/config/use-editor.d.ts +11 -1
- package/dist/runtime/components/config/use-editor.js +27 -1
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/config.d.vue.ts +163 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/config.vue +745 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/config.vue.d.ts +163 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/runtime.vue +383 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.d.ts +264 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.js +183 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/config.d.vue.ts +163 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/config.vue +745 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/config.vue.d.ts +163 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/runtime.vue +402 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.d.ts +264 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.js +209 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +129 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue +618 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +129 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/runtime.vue +501 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +99 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.js +133 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +127 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue +550 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +127 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/runtime.vue +496 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.d.ts +96 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.js +125 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +133 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue +605 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +133 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/runtime.vue +401 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.d.ts +102 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.js +142 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +131 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue +560 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +131 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/runtime.vue +395 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.d.ts +96 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.js +118 -0
- package/dist/runtime/components/form/fields/2026-05-28/tree-combobox-shared.d.ts +35 -0
- package/dist/runtime/components/form/fields/2026-05-28/tree-combobox-shared.js +31 -0
- package/dist/runtime/components/form/unit-config.vue +45 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +183 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue +931 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +183 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/runtime.vue +463 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +283 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.js +275 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +183 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue +931 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +183 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/runtime.vue +414 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +283 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.js +275 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +133 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue +632 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +133 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/runtime.vue +461 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +93 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.js +161 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +131 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue +563 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +131 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/runtime.vue +443 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.d.ts +90 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.js +153 -0
- package/dist/runtime/components/table/columns/2026-05-28/tree-combobox-shared.d.ts +35 -0
- package/dist/runtime/components/table/columns/2026-05-28/tree-combobox-shared.js +31 -0
- package/dist/runtime/components/table/config.vue +1 -30
- package/dist/runtime/components/ui/command/CommandItem.d.vue.ts +7 -0
- package/dist/runtime/components/ui/command/CommandItem.vue +13 -4
- package/dist/runtime/components/ui/command/CommandItem.vue.d.ts +7 -0
- package/dist/runtime/share/clipboard.d.ts +26 -0
- package/dist/runtime/share/clipboard.js +82 -0
- package/dist/runtime/share/layout.d.ts +4 -0
- package/dist/runtime/share/layout.js +35 -0
- package/package.json +1 -1
- package/dist/preview/assets/index-DNd8J9Zv.js +0 -643
- package/dist/preview/assets/index-DrIMqXAa.js +0 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { type Value } from './schema.js';
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
modelValue: Value;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: {
|
|
7
|
+
readonly size?: number | undefined;
|
|
8
|
+
readonly disabled?: string | undefined;
|
|
9
|
+
readonly type: "com.shwfed.table.column.tree-combobox-multi";
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly title: readonly [{
|
|
12
|
+
readonly locale: "zh";
|
|
13
|
+
readonly message: string;
|
|
14
|
+
}, ...{
|
|
15
|
+
readonly locale: "en" | "ja" | "ko";
|
|
16
|
+
readonly message: string;
|
|
17
|
+
}[]];
|
|
18
|
+
readonly hidden?: string | undefined;
|
|
19
|
+
readonly tooltip?: readonly [{
|
|
20
|
+
readonly locale: "zh";
|
|
21
|
+
readonly message: string;
|
|
22
|
+
}, ...{
|
|
23
|
+
readonly locale: "en" | "ja" | "ko";
|
|
24
|
+
readonly message: string;
|
|
25
|
+
}[]] | undefined;
|
|
26
|
+
readonly compatibilityDate: "2026-05-28";
|
|
27
|
+
readonly groupId?: string | undefined;
|
|
28
|
+
readonly placeholder?: readonly [{
|
|
29
|
+
readonly locale: "zh";
|
|
30
|
+
readonly message: string;
|
|
31
|
+
}, ...{
|
|
32
|
+
readonly locale: "en" | "ja" | "ko";
|
|
33
|
+
readonly message: string;
|
|
34
|
+
}[]] | undefined;
|
|
35
|
+
readonly keywords?: string | undefined;
|
|
36
|
+
readonly readonly?: string | undefined;
|
|
37
|
+
readonly grow?: boolean | undefined;
|
|
38
|
+
readonly binding: string;
|
|
39
|
+
readonly derived?: {
|
|
40
|
+
readonly mode: "formula" | "prefill";
|
|
41
|
+
readonly expression: string;
|
|
42
|
+
} | undefined;
|
|
43
|
+
readonly dataSource: {
|
|
44
|
+
readonly data: string;
|
|
45
|
+
readonly request?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
readonly nodeKey: string;
|
|
48
|
+
readonly nodeChildren: string;
|
|
49
|
+
readonly nodeLabel: readonly [{
|
|
50
|
+
readonly locale: "zh";
|
|
51
|
+
readonly message: string;
|
|
52
|
+
}, ...{
|
|
53
|
+
readonly locale: "en" | "ja" | "ko";
|
|
54
|
+
readonly message: string;
|
|
55
|
+
}[]];
|
|
56
|
+
readonly expandAll: boolean;
|
|
57
|
+
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
58
|
+
readonly enableSorting?: boolean | undefined;
|
|
59
|
+
readonly nodeTooltip?: readonly [{
|
|
60
|
+
readonly locale: "zh";
|
|
61
|
+
readonly message: string;
|
|
62
|
+
}, ...{
|
|
63
|
+
readonly locale: "en" | "ja" | "ko";
|
|
64
|
+
readonly message: string;
|
|
65
|
+
}[]] | undefined;
|
|
66
|
+
readonly nodeSelectable?: string | undefined;
|
|
67
|
+
}) => any;
|
|
68
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
69
|
+
"onUpdate:modelValue"?: ((value: {
|
|
70
|
+
readonly size?: number | undefined;
|
|
71
|
+
readonly disabled?: string | undefined;
|
|
72
|
+
readonly type: "com.shwfed.table.column.tree-combobox-multi";
|
|
73
|
+
readonly id: string;
|
|
74
|
+
readonly title: readonly [{
|
|
75
|
+
readonly locale: "zh";
|
|
76
|
+
readonly message: string;
|
|
77
|
+
}, ...{
|
|
78
|
+
readonly locale: "en" | "ja" | "ko";
|
|
79
|
+
readonly message: string;
|
|
80
|
+
}[]];
|
|
81
|
+
readonly hidden?: string | undefined;
|
|
82
|
+
readonly tooltip?: readonly [{
|
|
83
|
+
readonly locale: "zh";
|
|
84
|
+
readonly message: string;
|
|
85
|
+
}, ...{
|
|
86
|
+
readonly locale: "en" | "ja" | "ko";
|
|
87
|
+
readonly message: string;
|
|
88
|
+
}[]] | undefined;
|
|
89
|
+
readonly compatibilityDate: "2026-05-28";
|
|
90
|
+
readonly groupId?: string | undefined;
|
|
91
|
+
readonly placeholder?: readonly [{
|
|
92
|
+
readonly locale: "zh";
|
|
93
|
+
readonly message: string;
|
|
94
|
+
}, ...{
|
|
95
|
+
readonly locale: "en" | "ja" | "ko";
|
|
96
|
+
readonly message: string;
|
|
97
|
+
}[]] | undefined;
|
|
98
|
+
readonly keywords?: string | undefined;
|
|
99
|
+
readonly readonly?: string | undefined;
|
|
100
|
+
readonly grow?: boolean | undefined;
|
|
101
|
+
readonly binding: string;
|
|
102
|
+
readonly derived?: {
|
|
103
|
+
readonly mode: "formula" | "prefill";
|
|
104
|
+
readonly expression: string;
|
|
105
|
+
} | undefined;
|
|
106
|
+
readonly dataSource: {
|
|
107
|
+
readonly data: string;
|
|
108
|
+
readonly request?: string | undefined;
|
|
109
|
+
};
|
|
110
|
+
readonly nodeKey: string;
|
|
111
|
+
readonly nodeChildren: string;
|
|
112
|
+
readonly nodeLabel: readonly [{
|
|
113
|
+
readonly locale: "zh";
|
|
114
|
+
readonly message: string;
|
|
115
|
+
}, ...{
|
|
116
|
+
readonly locale: "en" | "ja" | "ko";
|
|
117
|
+
readonly message: string;
|
|
118
|
+
}[]];
|
|
119
|
+
readonly expandAll: boolean;
|
|
120
|
+
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
121
|
+
readonly enableSorting?: boolean | undefined;
|
|
122
|
+
readonly nodeTooltip?: readonly [{
|
|
123
|
+
readonly locale: "zh";
|
|
124
|
+
readonly message: string;
|
|
125
|
+
}, ...{
|
|
126
|
+
readonly locale: "en" | "ja" | "ko";
|
|
127
|
+
readonly message: string;
|
|
128
|
+
}[]] | undefined;
|
|
129
|
+
readonly nodeSelectable?: string | undefined;
|
|
130
|
+
}) => any) | undefined;
|
|
131
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
132
|
+
declare const _default: typeof __VLS_export;
|
|
133
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CellContext } from '@tanstack/vue-table';
|
|
2
|
+
import type { Value } from './schema.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
column: Value;
|
|
5
|
+
ctx: CellContext<unknown, unknown>;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { Icon } from "@iconify/vue";
|
|
3
|
+
import { Effect, Fiber, Option } from "effect";
|
|
4
|
+
import { computed, ref, shallowRef, watch } from "vue";
|
|
5
|
+
import { useI18n } from "vue-i18n";
|
|
6
|
+
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
7
|
+
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
|
+
import { getLocalizedText } from "../../../../../share/locale";
|
|
9
|
+
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "../../../../ui/input-group";
|
|
10
|
+
import { Markdown } from "../../../../ui/markdown";
|
|
11
|
+
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "../../../../ui/popover";
|
|
12
|
+
import { Skeleton } from "../../../../ui/skeleton";
|
|
13
|
+
import { Tree as UiTree } from "../../../../ui/tree";
|
|
14
|
+
import { useFormState } from "../../../../form/utils/state";
|
|
15
|
+
import { interpolateMarkdown } from "../../../utils/runtime";
|
|
16
|
+
import { useSharedFetchLayer } from "../../../utils/shared-fetch";
|
|
17
|
+
import {
|
|
18
|
+
findWrappedPath,
|
|
19
|
+
getWrappedChildren,
|
|
20
|
+
wrapStructuralAll
|
|
21
|
+
} from "../tree-combobox-shared";
|
|
22
|
+
defineOptions({ name: "ShwfedTableTreeComboboxMultiRendererRuntime" });
|
|
23
|
+
const props = defineProps({
|
|
24
|
+
column: { type: null, required: true },
|
|
25
|
+
ctx: { type: Object, required: true }
|
|
26
|
+
});
|
|
27
|
+
const { locale, t } = useI18n({
|
|
28
|
+
inheritLocale: true,
|
|
29
|
+
messages: {
|
|
30
|
+
zh: {
|
|
31
|
+
"tree-combobox-multi-placeholder": "\u8BF7\u9009\u62E9",
|
|
32
|
+
"tree-combobox-multi-search-placeholder": "\u641C\u7D22\u2026",
|
|
33
|
+
"tree-combobox-multi-empty": "\u65E0\u53EF\u9009\u9879",
|
|
34
|
+
"tree-combobox-multi-load-error": "\u52A0\u8F7D\u5931\u8D25",
|
|
35
|
+
"tree-combobox-multi-retry": "\u91CD\u8BD5"
|
|
36
|
+
},
|
|
37
|
+
en: {
|
|
38
|
+
"tree-combobox-multi-placeholder": "Select\u2026",
|
|
39
|
+
"tree-combobox-multi-search-placeholder": "Search\u2026",
|
|
40
|
+
"tree-combobox-multi-empty": "No options",
|
|
41
|
+
"tree-combobox-multi-load-error": "Failed to load",
|
|
42
|
+
"tree-combobox-multi-retry": "Retry"
|
|
43
|
+
},
|
|
44
|
+
ja: {
|
|
45
|
+
"tree-combobox-multi-placeholder": "\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
46
|
+
"tree-combobox-multi-search-placeholder": "\u691C\u7D22\u2026",
|
|
47
|
+
"tree-combobox-multi-empty": "\u9078\u629E\u80A2\u306A\u3057",
|
|
48
|
+
"tree-combobox-multi-load-error": "\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
|
|
49
|
+
"tree-combobox-multi-retry": "\u518D\u8A66\u884C"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
const formState = useFormState();
|
|
54
|
+
const inherited = injectCELContext();
|
|
55
|
+
const $cel = (expression, context) => _rawCel(expression, { ...celBindings(inherited), ...context });
|
|
56
|
+
const sharedFetchLayer = useSharedFetchLayer();
|
|
57
|
+
const row = computed(() => props.ctx.row.original);
|
|
58
|
+
const rowIndex = computed(() => props.ctx.row.index);
|
|
59
|
+
const placeholderText = computed(
|
|
60
|
+
() => props.column.placeholder ? getLocalizedText(props.column.placeholder, locale.value) : t("tree-combobox-multi-placeholder")
|
|
61
|
+
);
|
|
62
|
+
function evalBool(expression, label) {
|
|
63
|
+
if (!expression) return false;
|
|
64
|
+
try {
|
|
65
|
+
return Effect.runSync($cel(expression, { row: row.value, index: rowIndex.value })) === true;
|
|
66
|
+
} catch (e) {
|
|
67
|
+
console.error(`[shwfed-table] tree-combobox-multi ${label} failed`, e);
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const isHidden = computed(() => evalBool(props.column.hidden, "hidden"));
|
|
72
|
+
const isDisabled = computed(() => evalBool(props.column.disabled, "disabled"));
|
|
73
|
+
const isReadonly = computed(() => evalBool(props.column.readonly, "readonly"));
|
|
74
|
+
const effectiveReadonly = computed(
|
|
75
|
+
() => isReadonly.value || props.column.derived?.mode === "formula"
|
|
76
|
+
);
|
|
77
|
+
const committedKeys = computed(() => {
|
|
78
|
+
const raw = formState.getAt(props.column.binding);
|
|
79
|
+
return Array.isArray(raw) ? raw.map((v) => String(v)) : [];
|
|
80
|
+
});
|
|
81
|
+
function commit(next) {
|
|
82
|
+
formState.setAt(props.column.binding, next.map((v) => String(v)));
|
|
83
|
+
}
|
|
84
|
+
function nodeCtx(raw) {
|
|
85
|
+
return { row: row.value, index: rowIndex.value, node: raw };
|
|
86
|
+
}
|
|
87
|
+
function nodeKey(raw) {
|
|
88
|
+
try {
|
|
89
|
+
return String(Effect.runSync($cel(props.column.nodeKey, nodeCtx(raw))));
|
|
90
|
+
} catch (e) {
|
|
91
|
+
console.error("[shwfed-table] tree-combobox-multi nodeKey failed", e);
|
|
92
|
+
return "";
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function nodeChildrenList(raw) {
|
|
96
|
+
let v;
|
|
97
|
+
try {
|
|
98
|
+
v = Effect.runSync($cel(props.column.nodeChildren, nodeCtx(raw)));
|
|
99
|
+
} catch (e) {
|
|
100
|
+
console.error("[shwfed-table] tree-combobox-multi nodeChildren failed", e);
|
|
101
|
+
return void 0;
|
|
102
|
+
}
|
|
103
|
+
if (v == null) return void 0;
|
|
104
|
+
if (!Array.isArray(v)) return void 0;
|
|
105
|
+
return v;
|
|
106
|
+
}
|
|
107
|
+
function safeInterpolate(tpl, raw) {
|
|
108
|
+
try {
|
|
109
|
+
return interpolateMarkdown(tpl, $cel, nodeCtx(raw));
|
|
110
|
+
} catch (e) {
|
|
111
|
+
console.error("[shwfed-table] tree-combobox-multi node interpolation failed", e);
|
|
112
|
+
return tpl;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function wrappedLabelText(w) {
|
|
116
|
+
const tpl = getLocalizedText(props.column.nodeLabel, locale.value) ?? "";
|
|
117
|
+
return tpl ? safeInterpolate(tpl, w.raw) : "";
|
|
118
|
+
}
|
|
119
|
+
function wrappedTooltipText(w) {
|
|
120
|
+
if (!props.column.nodeTooltip) return void 0;
|
|
121
|
+
const tpl = getLocalizedText(props.column.nodeTooltip, locale.value);
|
|
122
|
+
return tpl ? safeInterpolate(tpl, w.raw) : void 0;
|
|
123
|
+
}
|
|
124
|
+
function wrappedKeywords(w) {
|
|
125
|
+
const expr = props.column.keywords;
|
|
126
|
+
if (!expr) return [];
|
|
127
|
+
let v;
|
|
128
|
+
try {
|
|
129
|
+
v = Effect.runSync($cel(expr, nodeCtx(w.raw)));
|
|
130
|
+
} catch (e) {
|
|
131
|
+
console.error("[shwfed-table] tree-combobox-multi keywords failed", e);
|
|
132
|
+
return [];
|
|
133
|
+
}
|
|
134
|
+
if (!Array.isArray(v)) return [];
|
|
135
|
+
return v.filter((k) => k != null).map((k) => String(k).trim().toLowerCase()).filter((k) => k.length > 0);
|
|
136
|
+
}
|
|
137
|
+
function wrappedSelectable(w, _depth) {
|
|
138
|
+
if (isDisabled.value) return false;
|
|
139
|
+
const expr = props.column.nodeSelectable;
|
|
140
|
+
if (!expr) return true;
|
|
141
|
+
try {
|
|
142
|
+
return Effect.runSync($cel(expr, nodeCtx(w.raw)));
|
|
143
|
+
} catch {
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
const rawRoots = shallowRef([]);
|
|
148
|
+
const loading = ref(false);
|
|
149
|
+
const fetchError = ref(null);
|
|
150
|
+
async function fetchTree() {
|
|
151
|
+
const dataSource = props.column.dataSource;
|
|
152
|
+
if (!dataSource) {
|
|
153
|
+
rawRoots.value = [];
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
const effect = Effect.gen(function* () {
|
|
157
|
+
let jsonOpt = Option.none();
|
|
158
|
+
if (dataSource.request) {
|
|
159
|
+
const builder = yield* $cel(dataSource.request, {
|
|
160
|
+
row: row.value,
|
|
161
|
+
index: rowIndex.value
|
|
162
|
+
});
|
|
163
|
+
const response = yield* builder.json();
|
|
164
|
+
jsonOpt = Option.some(response);
|
|
165
|
+
}
|
|
166
|
+
const dataRaw = yield* $cel(dataSource.data, {
|
|
167
|
+
row: row.value,
|
|
168
|
+
index: rowIndex.value,
|
|
169
|
+
json: jsonOpt
|
|
170
|
+
});
|
|
171
|
+
return Array.isArray(dataRaw) ? dataRaw : [];
|
|
172
|
+
});
|
|
173
|
+
const program = Effect.gen(function* () {
|
|
174
|
+
const showMaskFiber = yield* Effect.fork(
|
|
175
|
+
Effect.sync(() => {
|
|
176
|
+
loading.value = true;
|
|
177
|
+
}).pipe(Effect.delay("30 millis"))
|
|
178
|
+
);
|
|
179
|
+
return yield* Effect.ensuring(effect, Fiber.interrupt(showMaskFiber));
|
|
180
|
+
}).pipe(
|
|
181
|
+
Effect.ensuring(Effect.sync(() => {
|
|
182
|
+
loading.value = false;
|
|
183
|
+
}))
|
|
184
|
+
);
|
|
185
|
+
try {
|
|
186
|
+
const result = await Effect.runPromise(Effect.provide(program, sharedFetchLayer));
|
|
187
|
+
rawRoots.value = result;
|
|
188
|
+
fetchError.value = null;
|
|
189
|
+
} catch (e) {
|
|
190
|
+
console.warn("[shwfed-table] tree-combobox-multi dataSource fetch failed", e);
|
|
191
|
+
fetchError.value = e;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
watch(
|
|
195
|
+
() => [props.column.dataSource?.request, props.column.dataSource?.data],
|
|
196
|
+
() => {
|
|
197
|
+
void fetchTree();
|
|
198
|
+
},
|
|
199
|
+
{ immediate: true }
|
|
200
|
+
);
|
|
201
|
+
const roots = computed(
|
|
202
|
+
() => wrapStructuralAll(rawRoots.value, {
|
|
203
|
+
nodeKey,
|
|
204
|
+
nodeChildren: nodeChildrenList
|
|
205
|
+
})
|
|
206
|
+
);
|
|
207
|
+
const pendingKeys = ref(null);
|
|
208
|
+
const open = ref(false);
|
|
209
|
+
watch(open, (next, prev) => {
|
|
210
|
+
if (!prev && next) {
|
|
211
|
+
pendingKeys.value = [...committedKeys.value];
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
if (prev && !next && pendingKeys.value !== null) {
|
|
215
|
+
commit(pendingKeys.value);
|
|
216
|
+
pendingKeys.value = null;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
const displayKeys = computed(
|
|
220
|
+
() => pendingKeys.value ?? committedKeys.value
|
|
221
|
+
);
|
|
222
|
+
function handleUpdate(next) {
|
|
223
|
+
const arr = Array.isArray(next) ? next : [];
|
|
224
|
+
pendingKeys.value = arr;
|
|
225
|
+
}
|
|
226
|
+
function labelForKey(k) {
|
|
227
|
+
const path = findWrappedPath(roots.value, k);
|
|
228
|
+
if (!path || path.length === 0) return null;
|
|
229
|
+
const leaf = path[path.length - 1];
|
|
230
|
+
return wrappedLabelText(leaf);
|
|
231
|
+
}
|
|
232
|
+
const triggerLabel = computed(() => {
|
|
233
|
+
const arr = displayKeys.value;
|
|
234
|
+
if (arr.length === 0) return "";
|
|
235
|
+
const head = labelForKey(arr[0]);
|
|
236
|
+
if (head === null || head.length === 0) return "";
|
|
237
|
+
if (arr.length === 1) return head;
|
|
238
|
+
return `${head} +${arr.length - 1}`;
|
|
239
|
+
});
|
|
240
|
+
const initialExpanded = computed(() => {
|
|
241
|
+
if (!props.column.expandAll) return [];
|
|
242
|
+
const out = [];
|
|
243
|
+
const stack = [...roots.value];
|
|
244
|
+
while (stack.length) {
|
|
245
|
+
const n = stack.pop();
|
|
246
|
+
if (n.kind === "branch") {
|
|
247
|
+
out.push(n.key);
|
|
248
|
+
stack.push(...n.children);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return out;
|
|
252
|
+
});
|
|
253
|
+
const filterQuery = ref("");
|
|
254
|
+
function filterPredicate(w, query) {
|
|
255
|
+
const q = query.trim().toLowerCase();
|
|
256
|
+
if (!q) return true;
|
|
257
|
+
if (wrappedLabelText(w).trim().toLowerCase().includes(q)) return true;
|
|
258
|
+
return wrappedKeywords(w).some((k) => k.includes(q));
|
|
259
|
+
}
|
|
260
|
+
const showClear = computed(
|
|
261
|
+
() => !isDisabled.value && !loading.value && displayKeys.value.length > 0
|
|
262
|
+
);
|
|
263
|
+
function handleClear() {
|
|
264
|
+
pendingKeys.value = null;
|
|
265
|
+
commit([]);
|
|
266
|
+
open.value = false;
|
|
267
|
+
}
|
|
268
|
+
const hoveredKey = ref(null);
|
|
269
|
+
watch(open, (isOpen) => {
|
|
270
|
+
if (!isOpen) hoveredKey.value = null;
|
|
271
|
+
});
|
|
272
|
+
function collectTooltipNodes(out, siblings) {
|
|
273
|
+
for (const n of siblings) {
|
|
274
|
+
if (wrappedTooltipText(n)) out.push(n.key);
|
|
275
|
+
if (n.kind === "branch") collectTooltipNodes(out, n.children);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
const anyHasTooltip = computed(() => {
|
|
279
|
+
if (!props.column.nodeTooltip) return false;
|
|
280
|
+
const out = [];
|
|
281
|
+
collectTooltipNodes(out, roots.value);
|
|
282
|
+
return out.length > 0;
|
|
283
|
+
});
|
|
284
|
+
const hoveredTooltip = computed(() => {
|
|
285
|
+
const k = hoveredKey.value;
|
|
286
|
+
if (!k) return void 0;
|
|
287
|
+
const path = findWrappedPath(roots.value, k);
|
|
288
|
+
if (!path || path.length === 0) return void 0;
|
|
289
|
+
return wrappedTooltipText(path[path.length - 1]);
|
|
290
|
+
});
|
|
291
|
+
</script>
|
|
292
|
+
|
|
293
|
+
<template>
|
|
294
|
+
<div class="p-[0.125rem] w-full">
|
|
295
|
+
<span
|
|
296
|
+
v-if="isHidden"
|
|
297
|
+
class="block h-7 w-full"
|
|
298
|
+
/>
|
|
299
|
+
<span
|
|
300
|
+
v-else-if="effectiveReadonly"
|
|
301
|
+
class="flex items-center h-7 w-full px-2 text-[0.75rem] text-zinc-700 truncate"
|
|
302
|
+
>
|
|
303
|
+
{{ triggerLabel || "\u2014" }}
|
|
304
|
+
</span>
|
|
305
|
+
<Popover
|
|
306
|
+
v-else
|
|
307
|
+
v-model:open="open"
|
|
308
|
+
>
|
|
309
|
+
<PopoverAnchor as-child>
|
|
310
|
+
<InputGroup
|
|
311
|
+
class="group/tree-combobox-multi h-7 rounded border-zinc-200/30 hover:border-zinc-200 focus-within:border-zinc-200 transition-colors ease-out duration-180"
|
|
312
|
+
:data-disabled="isDisabled ? 'true' : void 0"
|
|
313
|
+
>
|
|
314
|
+
<PopoverTrigger as-child>
|
|
315
|
+
<InputGroupInput
|
|
316
|
+
:model-value="triggerLabel"
|
|
317
|
+
:disabled="isDisabled"
|
|
318
|
+
:placeholder="placeholderText"
|
|
319
|
+
class="h-7 text-[0.75rem] md:text-[0.75rem] px-2 cursor-pointer text-left"
|
|
320
|
+
readonly
|
|
321
|
+
/>
|
|
322
|
+
</PopoverTrigger>
|
|
323
|
+
<InputGroupAddon
|
|
324
|
+
v-if="loading"
|
|
325
|
+
align="inline-end"
|
|
326
|
+
data-slot="tree-combobox-multi-loading"
|
|
327
|
+
class="text-zinc-400"
|
|
328
|
+
>
|
|
329
|
+
<Icon
|
|
330
|
+
icon="fluent:spinner-ios-20-regular"
|
|
331
|
+
class="size-3 animate-spin"
|
|
332
|
+
/>
|
|
333
|
+
</InputGroupAddon>
|
|
334
|
+
<InputGroupAddon
|
|
335
|
+
v-else-if="showClear"
|
|
336
|
+
align="inline-end"
|
|
337
|
+
class="[@media(hover:hover)]:opacity-0 transition-opacity group-hover/tree-combobox-multi:opacity-100 focus-within:opacity-100"
|
|
338
|
+
>
|
|
339
|
+
<InputGroupButton
|
|
340
|
+
size="icon-xs"
|
|
341
|
+
data-slot="tree-combobox-multi-clear"
|
|
342
|
+
class="size-4 text-zinc-500 hover:text-zinc-700"
|
|
343
|
+
tabindex="-1"
|
|
344
|
+
@mousedown.prevent
|
|
345
|
+
@click.stop="handleClear"
|
|
346
|
+
>
|
|
347
|
+
<Icon
|
|
348
|
+
icon="fluent:dismiss-20-regular"
|
|
349
|
+
class="size-3"
|
|
350
|
+
/>
|
|
351
|
+
</InputGroupButton>
|
|
352
|
+
</InputGroupAddon>
|
|
353
|
+
</InputGroup>
|
|
354
|
+
</PopoverAnchor>
|
|
355
|
+
<PopoverContent
|
|
356
|
+
class="p-0"
|
|
357
|
+
:style="{ width: 'var(--reka-popover-trigger-width)' }"
|
|
358
|
+
>
|
|
359
|
+
<div
|
|
360
|
+
data-slot="tree-combobox-multi-search"
|
|
361
|
+
class="flex h-7 items-center gap-2 border-b border-zinc-200 px-2"
|
|
362
|
+
>
|
|
363
|
+
<Icon
|
|
364
|
+
icon="fluent:search-20-filled"
|
|
365
|
+
class="size-3 shrink-0 opacity-50"
|
|
366
|
+
/>
|
|
367
|
+
<input
|
|
368
|
+
v-model="filterQuery"
|
|
369
|
+
:disabled="isDisabled"
|
|
370
|
+
:placeholder="t('tree-combobox-multi-search-placeholder')"
|
|
371
|
+
class="flex h-7 w-full bg-transparent text-[0.75rem] outline-hidden placeholder:text-zinc-500 disabled:cursor-not-allowed disabled:opacity-50"
|
|
372
|
+
>
|
|
373
|
+
</div>
|
|
374
|
+
<div class="flex flex-col p-1">
|
|
375
|
+
<div
|
|
376
|
+
v-if="fetchError && roots.length === 0"
|
|
377
|
+
class="min-h-7 px-2 py-1 text-[0.75rem] text-red-500"
|
|
378
|
+
>
|
|
379
|
+
{{ t("tree-combobox-multi-load-error") }}
|
|
380
|
+
</div>
|
|
381
|
+
<div
|
|
382
|
+
v-else-if="loading && roots.length === 0"
|
|
383
|
+
class="flex flex-col gap-1 px-2 py-1"
|
|
384
|
+
aria-busy="true"
|
|
385
|
+
>
|
|
386
|
+
<Skeleton class="h-4 w-2/3" />
|
|
387
|
+
<Skeleton class="h-4 w-1/2" />
|
|
388
|
+
<Skeleton class="h-4 w-3/5" />
|
|
389
|
+
</div>
|
|
390
|
+
|
|
391
|
+
<UiTree
|
|
392
|
+
v-else
|
|
393
|
+
:roots="roots"
|
|
394
|
+
:get-key="(w) => w.key"
|
|
395
|
+
:get-children="getWrappedChildren"
|
|
396
|
+
selection-mode="multi"
|
|
397
|
+
:cascade="column.cascade ?? 'independent'"
|
|
398
|
+
:model-value="displayKeys"
|
|
399
|
+
:selectable="wrappedSelectable"
|
|
400
|
+
:filter-predicate="filterPredicate"
|
|
401
|
+
:filter-query="filterQuery"
|
|
402
|
+
:initial-expanded="initialExpanded"
|
|
403
|
+
:show-focused-row="false"
|
|
404
|
+
:class="isDisabled ? 'pointer-events-none opacity-60' : void 0"
|
|
405
|
+
class="max-h-72 overflow-y-auto"
|
|
406
|
+
@update:model-value="handleUpdate"
|
|
407
|
+
>
|
|
408
|
+
<template #node="{ node, selected }">
|
|
409
|
+
<span
|
|
410
|
+
class="flex flex-1 min-w-0 items-center justify-between gap-2"
|
|
411
|
+
@mouseenter="hoveredKey = node.key"
|
|
412
|
+
@focusin="hoveredKey = node.key"
|
|
413
|
+
>
|
|
414
|
+
<Markdown
|
|
415
|
+
:source="wrappedLabelText(node)"
|
|
416
|
+
class="prose prose-xs prose-zinc text-zinc-700 min-w-0"
|
|
417
|
+
/>
|
|
418
|
+
<Icon
|
|
419
|
+
v-if="selected"
|
|
420
|
+
icon="fluent:checkmark-20-regular"
|
|
421
|
+
class="size-3 shrink-0 text-zinc-700"
|
|
422
|
+
/>
|
|
423
|
+
</span>
|
|
424
|
+
</template>
|
|
425
|
+
|
|
426
|
+
<template #empty>
|
|
427
|
+
<div class="min-h-7 px-2 py-1 text-[0.75rem] text-zinc-400">
|
|
428
|
+
{{ t("tree-combobox-multi-empty") }}
|
|
429
|
+
</div>
|
|
430
|
+
</template>
|
|
431
|
+
|
|
432
|
+
<template #error="{ error, retry }">
|
|
433
|
+
<span class="inline-flex items-center gap-1 text-xs text-red-500">
|
|
434
|
+
{{ t("tree-combobox-multi-load-error") }}
|
|
435
|
+
<button
|
|
436
|
+
type="button"
|
|
437
|
+
class="underline hover:text-red-600"
|
|
438
|
+
@click.stop="retry"
|
|
439
|
+
>
|
|
440
|
+
{{ t("tree-combobox-multi-retry") }}
|
|
441
|
+
</button>
|
|
442
|
+
<span class="sr-only">{{ String(error) }}</span>
|
|
443
|
+
</span>
|
|
444
|
+
</template>
|
|
445
|
+
</UiTree>
|
|
446
|
+
</div>
|
|
447
|
+
<div
|
|
448
|
+
v-if="anyHasTooltip && hoveredTooltip"
|
|
449
|
+
data-slot="tree-combobox-multi-tooltip"
|
|
450
|
+
class="border-t border-zinc-200 px-2 py-1.5"
|
|
451
|
+
>
|
|
452
|
+
<Markdown
|
|
453
|
+
:source="hoveredTooltip"
|
|
454
|
+
block
|
|
455
|
+
class="prose prose-xs prose-zinc"
|
|
456
|
+
/>
|
|
457
|
+
</div>
|
|
458
|
+
</PopoverContent>
|
|
459
|
+
</Popover>
|
|
460
|
+
</div>
|
|
461
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CellContext } from '@tanstack/vue-table';
|
|
2
|
+
import type { Value } from './schema.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
column: Value;
|
|
5
|
+
ctx: CellContext<unknown, unknown>;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|