@shwfed/config 2.5.2 → 2.6.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 +8 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +6 -1
- package/dist/preview/assets/{config-Du8jTCck.js → config-BF-HYbrD.js} +1 -1
- package/dist/preview/assets/{config-D9Igjtte.js → config-CevoqLCe.js} +1 -1
- package/dist/preview/assets/{config-BVTakYXq.js → config-Co--BPbb.js} +1 -1
- package/dist/preview/assets/{config-Bo8qCYUr.js → config-DMOAQ9zl.js} +1 -1
- package/dist/preview/assets/{config-DLuQtN-6.js → config-Du7AdGIY.js} +1 -1
- package/dist/preview/assets/{config-DO6VRND9.js → config-LdNKbqCx.js} +1 -1
- package/dist/preview/assets/{config-CoykdrWz.js → config-RACtdV3v.js} +1 -1
- package/dist/preview/assets/{config-CMWb8uI8.js → config-VChcvg_y.js} +1 -1
- package/dist/preview/assets/{config-BHInx1QR.js → config-oBOXGUjR.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-CjPPVjHf.js → definition.vue_vue_type_script_setup_true_lang-Ma8i-2ox.js} +1 -1
- package/dist/preview/assets/index-C-nzF9-u.js +1 -0
- package/dist/preview/assets/index-CHEiFlnE.css +1 -0
- package/dist/preview/assets/index-rxUrWg1Y.js +680 -0
- package/dist/preview/assets/{runtime-BnXLPPWc.js → runtime-BNzaUtd-.js} +1 -1
- package/dist/preview/assets/{runtime-CCBYA0xX.js → runtime-CAj4SjAs.js} +1 -1
- package/dist/preview/assets/{runtime-as-8tVjx.js → runtime-CE_42oyr.js} +1 -1
- package/dist/preview/assets/{runtime-D7cNZpnE.js → runtime-CLMz0SYI.js} +1 -1
- package/dist/preview/assets/{runtime-Cxl0E6Hg.js → runtime-COCfVWBL.js} +1 -1
- package/dist/preview/assets/{runtime-DTC0oZPz.js → runtime-GfHY6wxJ.js} +1 -1
- package/dist/preview/assets/{runtime-ePHYJvDG.js → runtime-Y00C-S73.js} +1 -1
- package/dist/preview/assets/{runtime-Bs_EtAsE.js → runtime-llw5ZA1Z.js} +1 -1
- package/dist/preview/assets/{runtime-BVShchDS.js → runtime-wAJ77Q3a.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +37 -16
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/config.vue +80 -34
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue +48 -18
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/config.vue +44 -17
- 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-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/config.vue +17 -1
- package/dist/runtime/components/table/index.vue +1 -0
- package/dist/runtime/components/table/row-provider.d.vue.ts +1 -0
- package/dist/runtime/components/table/row-provider.vue +9 -2
- package/dist/runtime/components/table/row-provider.vue.d.ts +1 -0
- package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.d.vue.ts +22 -0
- package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.vue +134 -0
- package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.vue.d.ts +22 -0
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.d.vue.ts +2 -2
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +71 -50
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue.d.ts +2 -2
- package/dist/runtime/components/ui/expression-editor/cel-language.d.ts +16 -0
- package/dist/runtime/components/ui/expression-editor/cel-language.js +114 -0
- package/dist/runtime/components/ui/expression-editor/chip-extension.d.ts +5 -0
- package/dist/runtime/components/ui/expression-editor/chip-extension.js +123 -0
- package/dist/runtime/components/ui/expression-editor/picker-entries.d.ts +17 -0
- package/dist/runtime/components/ui/expression-editor/picker-entries.js +34 -0
- package/dist/runtime/components/ui/expression-editor/scope-refs.d.ts +20 -0
- package/dist/runtime/components/ui/expression-editor/scope-refs.js +39 -0
- package/dist/runtime/share/expression.js +9 -0
- package/dist/runtime/utils/cel-context.d.ts +36 -0
- package/dist/runtime/utils/cel-context.js +39 -0
- package/package.json +6 -1
- package/dist/preview/assets/index-CLhRphC4.js +0 -668
- package/dist/preview/assets/index-DRXgXfoM.js +0 -1
- package/dist/preview/assets/index-nvAUAYGM.css +0 -1
|
@@ -30,36 +30,56 @@ const bindingText = computed({
|
|
|
30
30
|
get: () => value.value.binding ?? "",
|
|
31
31
|
set: (v) => {
|
|
32
32
|
const trimmed = v.trim();
|
|
33
|
-
if (trimmed === "")
|
|
34
|
-
|
|
33
|
+
if (trimmed === "") {
|
|
34
|
+
const { binding: _drop, ...rest } = value.value;
|
|
35
|
+
value.value = rest;
|
|
36
|
+
} else {
|
|
37
|
+
value.value = { ...value.value, binding: trimmed };
|
|
38
|
+
}
|
|
35
39
|
}
|
|
36
40
|
});
|
|
37
41
|
const hiddenModel = computed({
|
|
38
42
|
get: () => value.value.hidden ?? "",
|
|
39
43
|
set: (v) => {
|
|
40
|
-
if (v === "")
|
|
41
|
-
|
|
44
|
+
if (v === "") {
|
|
45
|
+
const { hidden: _drop, ...rest } = value.value;
|
|
46
|
+
value.value = rest;
|
|
47
|
+
} else {
|
|
48
|
+
value.value = { ...value.value, hidden: v };
|
|
49
|
+
}
|
|
42
50
|
}
|
|
43
51
|
});
|
|
44
52
|
const disabledModel = computed({
|
|
45
53
|
get: () => value.value.disabled ?? "",
|
|
46
54
|
set: (v) => {
|
|
47
|
-
if (v === "")
|
|
48
|
-
|
|
55
|
+
if (v === "") {
|
|
56
|
+
const { disabled: _drop, ...rest } = value.value;
|
|
57
|
+
value.value = rest;
|
|
58
|
+
} else {
|
|
59
|
+
value.value = { ...value.value, disabled: v };
|
|
60
|
+
}
|
|
49
61
|
}
|
|
50
62
|
});
|
|
51
63
|
const readonlyModel = computed({
|
|
52
64
|
get: () => value.value.readonly ?? "",
|
|
53
65
|
set: (v) => {
|
|
54
|
-
if (v === "")
|
|
55
|
-
|
|
66
|
+
if (v === "") {
|
|
67
|
+
const { readonly: _drop, ...rest } = value.value;
|
|
68
|
+
value.value = rest;
|
|
69
|
+
} else {
|
|
70
|
+
value.value = { ...value.value, readonly: v };
|
|
71
|
+
}
|
|
56
72
|
}
|
|
57
73
|
});
|
|
58
74
|
const derivedModel = computed({
|
|
59
75
|
get: () => value.value.derived,
|
|
60
76
|
set: (v) => {
|
|
61
|
-
if (v == null)
|
|
62
|
-
|
|
77
|
+
if (v == null) {
|
|
78
|
+
const { derived: _drop, ...rest } = value.value;
|
|
79
|
+
value.value = rest;
|
|
80
|
+
} else {
|
|
81
|
+
value.value = { ...value.value, derived: v };
|
|
82
|
+
}
|
|
63
83
|
}
|
|
64
84
|
});
|
|
65
85
|
</script>
|
|
@@ -81,7 +101,10 @@ const derivedModel = computed({
|
|
|
81
101
|
</template>
|
|
82
102
|
{{ fieldTitle("title") }}
|
|
83
103
|
</FieldLabel>
|
|
84
|
-
<Locale
|
|
104
|
+
<Locale
|
|
105
|
+
:model-value="value.title"
|
|
106
|
+
@update:model-value="(v) => value = { ...value, title: v }"
|
|
107
|
+
/>
|
|
85
108
|
</Field>
|
|
86
109
|
<Field orientation="vertical">
|
|
87
110
|
<FieldLabel class="text-xs text-zinc-500">
|
|
@@ -98,8 +121,9 @@ const derivedModel = computed({
|
|
|
98
121
|
{{ fieldTitle("tooltip") }}
|
|
99
122
|
</FieldLabel>
|
|
100
123
|
<Locale
|
|
101
|
-
|
|
124
|
+
:model-value="value.tooltip"
|
|
102
125
|
markdown
|
|
126
|
+
@update:model-value="(v) => value = { ...value, tooltip: v }"
|
|
103
127
|
/>
|
|
104
128
|
</Field>
|
|
105
129
|
</div>
|
|
@@ -140,7 +164,10 @@ const derivedModel = computed({
|
|
|
140
164
|
</template>
|
|
141
165
|
{{ fieldTitle("placeholder") }}
|
|
142
166
|
</FieldLabel>
|
|
143
|
-
<Locale
|
|
167
|
+
<Locale
|
|
168
|
+
:model-value="value.placeholder"
|
|
169
|
+
@update:model-value="(v) => value = { ...value, placeholder: v }"
|
|
170
|
+
/>
|
|
144
171
|
</Field>
|
|
145
172
|
<Field orientation="vertical">
|
|
146
173
|
<FieldLabel class="text-xs text-zinc-500">
|
|
@@ -161,13 +188,13 @@ const derivedModel = computed({
|
|
|
161
188
|
:model-value="value.size"
|
|
162
189
|
:disabled="value.grow"
|
|
163
190
|
:min="0"
|
|
164
|
-
@update:model-value="(v) => value
|
|
191
|
+
@update:model-value="(v) => value = { ...value, size: v }"
|
|
165
192
|
/>
|
|
166
193
|
<InputGroupAddon align="inline-end">
|
|
167
194
|
<InputGroupButton
|
|
168
195
|
:variant="value.grow ? 'primary' : 'ghost'"
|
|
169
196
|
size="xs"
|
|
170
|
-
@click="value
|
|
197
|
+
@click="value = { ...value, grow: !value.grow }"
|
|
171
198
|
>
|
|
172
199
|
<Icon :icon="value.grow ? 'fluent:lock-closed-20-regular' : 'fluent:arrow-autofit-width-20-regular'" />
|
|
173
200
|
{{ fieldTitle("grow") }}
|
|
@@ -285,13 +312,13 @@ const derivedModel = computed({
|
|
|
285
312
|
<InputGroupInput
|
|
286
313
|
:model-value="value.sortKey"
|
|
287
314
|
placeholder="例:created_at"
|
|
288
|
-
@update:model-value="(v) => value
|
|
315
|
+
@update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
|
|
289
316
|
/>
|
|
290
317
|
<InputGroupAddon align="inline-end">
|
|
291
318
|
<InputGroupButton
|
|
292
319
|
:variant="value.enableSorting ? 'primary' : 'ghost'"
|
|
293
320
|
size="xs"
|
|
294
|
-
@click="value
|
|
321
|
+
@click="value = { ...value, enableSorting: !value.enableSorting }"
|
|
295
322
|
>
|
|
296
323
|
<Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
|
|
297
324
|
{{ fieldTitle("enableSorting") }}
|
|
@@ -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;
|
|
54
53
|
readonly accessor: string;
|
|
55
54
|
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;
|
|
106
105
|
readonly accessor: string;
|
|
107
106
|
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;
|
|
54
53
|
readonly accessor: string;
|
|
55
54
|
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;
|
|
106
105
|
readonly accessor: string;
|
|
107
106
|
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;
|
|
68
67
|
readonly accessor: string;
|
|
69
68
|
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;
|
|
134
133
|
readonly accessor: string;
|
|
135
134
|
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;
|
|
68
67
|
readonly accessor: string;
|
|
69
68
|
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;
|
|
134
133
|
readonly accessor: string;
|
|
135
134
|
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;
|
|
54
53
|
readonly accessor: string;
|
|
55
54
|
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;
|
|
106
105
|
readonly accessor: string;
|
|
107
106
|
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;
|
|
54
53
|
readonly accessor: string;
|
|
55
54
|
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;
|
|
106
105
|
readonly accessor: string;
|
|
107
106
|
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;
|
|
68
67
|
readonly accessor: string;
|
|
69
68
|
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;
|
|
134
133
|
readonly accessor: string;
|
|
135
134
|
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;
|
|
68
67
|
readonly accessor: string;
|
|
69
68
|
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;
|
|
134
133
|
readonly accessor: string;
|
|
135
134
|
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;
|
|
83
82
|
readonly accessor: string;
|
|
84
83
|
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;
|
|
164
163
|
readonly accessor: string;
|
|
165
164
|
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;
|
|
83
82
|
readonly accessor: string;
|
|
84
83
|
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;
|
|
164
163
|
readonly accessor: string;
|
|
165
164
|
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;
|
|
83
82
|
readonly accessor: string;
|
|
84
83
|
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;
|
|
164
163
|
readonly accessor: string;
|
|
165
164
|
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;
|
|
83
82
|
readonly accessor: string;
|
|
84
83
|
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;
|
|
164
163
|
readonly accessor: string;
|
|
165
164
|
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;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
43
43
|
readonly target: string;
|
|
44
44
|
readonly operation: string;
|
|
45
45
|
}[] | undefined;
|
|
46
|
-
readonly successMessage?: string | undefined;
|
|
47
46
|
readonly accessor: string;
|
|
47
|
+
readonly successMessage?: string | undefined;
|
|
48
48
|
};
|
|
49
49
|
readonly grow?: boolean | undefined;
|
|
50
50
|
readonly enableSorting?: boolean | undefined;
|
|
@@ -132,8 +132,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
132
132
|
readonly target: string;
|
|
133
133
|
readonly operation: string;
|
|
134
134
|
}[] | undefined;
|
|
135
|
-
readonly successMessage?: string | undefined;
|
|
136
135
|
readonly accessor: string;
|
|
136
|
+
readonly successMessage?: string | undefined;
|
|
137
137
|
};
|
|
138
138
|
readonly grow?: boolean | undefined;
|
|
139
139
|
readonly enableSorting?: boolean | undefined;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
43
43
|
readonly target: string;
|
|
44
44
|
readonly operation: string;
|
|
45
45
|
}[] | undefined;
|
|
46
|
-
readonly successMessage?: string | undefined;
|
|
47
46
|
readonly accessor: string;
|
|
47
|
+
readonly successMessage?: string | undefined;
|
|
48
48
|
};
|
|
49
49
|
readonly grow?: boolean | undefined;
|
|
50
50
|
readonly enableSorting?: boolean | undefined;
|
|
@@ -132,8 +132,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
132
132
|
readonly target: string;
|
|
133
133
|
readonly operation: string;
|
|
134
134
|
}[] | undefined;
|
|
135
|
-
readonly successMessage?: string | undefined;
|
|
136
135
|
readonly accessor: string;
|
|
136
|
+
readonly successMessage?: string | undefined;
|
|
137
137
|
};
|
|
138
138
|
readonly grow?: boolean | undefined;
|
|
139
139
|
readonly enableSorting?: boolean | undefined;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
43
43
|
readonly target: string;
|
|
44
44
|
readonly operation: string;
|
|
45
45
|
}[] | undefined;
|
|
46
|
-
readonly successMessage?: string | undefined;
|
|
47
46
|
readonly accessor: string;
|
|
47
|
+
readonly successMessage?: string | undefined;
|
|
48
48
|
};
|
|
49
49
|
readonly grow?: boolean | undefined;
|
|
50
50
|
readonly enableSorting?: boolean | undefined;
|
|
@@ -132,8 +132,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
132
132
|
readonly target: string;
|
|
133
133
|
readonly operation: string;
|
|
134
134
|
}[] | undefined;
|
|
135
|
-
readonly successMessage?: string | undefined;
|
|
136
135
|
readonly accessor: string;
|
|
136
|
+
readonly successMessage?: string | undefined;
|
|
137
137
|
};
|
|
138
138
|
readonly grow?: boolean | undefined;
|
|
139
139
|
readonly enableSorting?: boolean | undefined;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
43
43
|
readonly target: string;
|
|
44
44
|
readonly operation: string;
|
|
45
45
|
}[] | undefined;
|
|
46
|
-
readonly successMessage?: string | undefined;
|
|
47
46
|
readonly accessor: string;
|
|
47
|
+
readonly successMessage?: string | undefined;
|
|
48
48
|
};
|
|
49
49
|
readonly grow?: boolean | undefined;
|
|
50
50
|
readonly enableSorting?: boolean | undefined;
|
|
@@ -132,8 +132,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
132
132
|
readonly target: string;
|
|
133
133
|
readonly operation: string;
|
|
134
134
|
}[] | undefined;
|
|
135
|
-
readonly successMessage?: string | undefined;
|
|
136
135
|
readonly accessor: string;
|
|
136
|
+
readonly successMessage?: string | undefined;
|
|
137
137
|
};
|
|
138
138
|
readonly grow?: boolean | undefined;
|
|
139
139
|
readonly enableSorting?: boolean | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed, defineComponent, inject, onBeforeUnmount, provide, ref, watch } from "vue";
|
|
3
|
-
import { provideCELContext } from "../../utils/cel-context";
|
|
3
|
+
import { provideCELContext, provideScopeAncestor } from "../../utils/cel-context";
|
|
4
4
|
import { BREADCRUMB_EXTENSION_KEY } from "../config/breadcrumb-extension";
|
|
5
5
|
import { TABLE_COLUMN_LAYOUT_KEY } from "./column-layout";
|
|
6
6
|
import { Icon } from "@iconify/vue";
|
|
@@ -272,6 +272,22 @@ const tableEventAncestor = computed(() => {
|
|
|
272
272
|
};
|
|
273
273
|
});
|
|
274
274
|
provideEventAncestor(tableEventAncestor);
|
|
275
|
+
const tableScopeAncestor = computed(() => {
|
|
276
|
+
const id = config.value.id;
|
|
277
|
+
if (!id) return null;
|
|
278
|
+
const displayName = config.value.displayName;
|
|
279
|
+
return {
|
|
280
|
+
id,
|
|
281
|
+
name: displayName && displayName.length > 0 ? displayName : void 0,
|
|
282
|
+
typeName: tableMetadata.name,
|
|
283
|
+
typeIcon: tableMetadata.icon,
|
|
284
|
+
members: [
|
|
285
|
+
{ key: "row", label: "\u5F53\u524D\u884C", type: "dyn", description: "\u8BE5\u8868\u683C\u5F53\u524D\u884C\u7684\u6574\u884C\u6570\u636E" },
|
|
286
|
+
{ key: "index", label: "\u884C\u5E8F\u53F7", type: "number", description: "\u8BE5\u8868\u683C\u5F53\u524D\u884C\u7684\u5E8F\u53F7\uFF0C\u4ECE `0` \u5F00\u59CB" }
|
|
287
|
+
]
|
|
288
|
+
};
|
|
289
|
+
});
|
|
290
|
+
provideScopeAncestor(tableScopeAncestor);
|
|
275
291
|
const isDrilled = computed(
|
|
276
292
|
() => selectedActions.value || selectedQuery.value || columnFullPane.value
|
|
277
293
|
);
|
|
@@ -809,6 +809,7 @@ export { TableConfig, createTableConfig, getColumnTechnicalKey } from "./schema"
|
|
|
809
809
|
:derived-columns="derivedEditableColumns"
|
|
810
810
|
:get-row="getRowAt"
|
|
811
811
|
:set-row="setRowAt"
|
|
812
|
+
:scope-id="config?.id"
|
|
812
813
|
>
|
|
813
814
|
<tr
|
|
814
815
|
:ref="getRowRefFn(rows[r.index].id)"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
import { customRef } from "vue";
|
|
4
4
|
import { cel as _rawCel } from "../../utils/cel";
|
|
5
|
-
import { celBindings, injectCELContext, provideCELContext } from "../../utils/cel-context";
|
|
5
|
+
import { celBindings, injectCELContext, provideCELContext, provideScopeAddress } from "../../utils/cel-context";
|
|
6
6
|
import { useDerived, useDerivedQuiescence } from "../form/utils/derived";
|
|
7
7
|
import { provideFormState } from "../form/utils/state";
|
|
8
8
|
defineOptions({ name: "ShwfedTableRowProvider" });
|
|
@@ -11,7 +11,8 @@ const props = defineProps({
|
|
|
11
11
|
displayIndex: { type: Number, required: true },
|
|
12
12
|
derivedColumns: { type: Array, required: true },
|
|
13
13
|
getRow: { type: Function, required: true },
|
|
14
|
-
setRow: { type: Function, required: true }
|
|
14
|
+
setRow: { type: Function, required: true },
|
|
15
|
+
scopeId: { type: String, required: false }
|
|
15
16
|
});
|
|
16
17
|
const rowRef = customRef((track, trigger) => ({
|
|
17
18
|
get() {
|
|
@@ -37,6 +38,12 @@ provideCELContext({
|
|
|
37
38
|
value: () => props.displayIndex
|
|
38
39
|
}
|
|
39
40
|
});
|
|
41
|
+
if (props.scopeId) {
|
|
42
|
+
provideScopeAddress(props.scopeId, {
|
|
43
|
+
row: () => rowRef.value,
|
|
44
|
+
index: () => props.displayIndex
|
|
45
|
+
});
|
|
46
|
+
}
|
|
40
47
|
const inherited = injectCELContext();
|
|
41
48
|
const $cel = (expression, context) => _rawCel(expression, { ...celBindings(inherited), ...context });
|
|
42
49
|
const formState = provideFormState(rowRef, "row");
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
import type { ScopeInfo } from './scope-refs.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
modelValue?: string;
|
|
7
|
+
multiline?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
scopeLookup: Map<string, ScopeInfo>;
|
|
10
|
+
};
|
|
11
|
+
declare function insertAtSelection(text: string): void;
|
|
12
|
+
declare function focus(): void;
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
14
|
+
insertAtSelection: typeof insertAtSelection;
|
|
15
|
+
focus: typeof focus;
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
|
+
"update:modelValue": (payload: string) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|