@shwfed/config 2.3.24 → 2.3.26
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 +1059 -634
- package/dist/module.json +1 -1
- package/dist/preview/assets/{config-CWZxlCMJ.js → config-BATy87wV.js} +1 -1
- package/dist/preview/assets/{config-Bi9uFh4Y.js → config-BkimX91E.js} +1 -1
- package/dist/preview/assets/{config-CBHKrOP5.js → config-CO2iovZD.js} +1 -1
- package/dist/preview/assets/{config-DYAEfkYR.js → config-Cm9t0CvW.js} +1 -1
- package/dist/preview/assets/{config-B-6Htwv0.js → config-DPFHMkHc.js} +1 -1
- package/dist/preview/assets/{config-B2KjxFl5.js → config-DgZ4NYoA.js} +1 -1
- package/dist/preview/assets/{config-D5Kfssb7.js → config-Dzqe6v-x.js} +1 -1
- package/dist/preview/assets/{config-B3at5Bue.js → config-u1rl9w2L.js} +1 -1
- package/dist/preview/assets/{config-CaZpOvHG.js → config-ypYLVfRE.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-8BVrrrak.js → definition.vue_vue_type_script_setup_true_lang-CliXxe84.js} +1 -1
- package/dist/preview/assets/index-6rM4rqXR.js +1 -0
- package/dist/preview/assets/{index-CJMxrUKZ.css → index-BCE-G4Ha.css} +1 -1
- package/dist/preview/assets/index-wBVA0mNO.js +643 -0
- package/dist/preview/assets/{runtime-CoRrnGx1.js → runtime-BR6-W3u_.js} +1 -1
- package/dist/preview/assets/{runtime-CEP42oTV.js → runtime-BTROwcw4.js} +1 -1
- package/dist/preview/assets/{runtime-CRHn61GX.js → runtime-B_FMZ5eD.js} +1 -1
- package/dist/preview/assets/{runtime-C1iENPNJ.js → runtime-CTpsTb-X.js} +1 -1
- package/dist/preview/assets/{runtime-Hvzx1ucy.js → runtime-Cj0kLSqP.js} +1 -1
- package/dist/preview/assets/{runtime-C5CCMnHt.js → runtime-D1xLbTQ9.js} +1 -1
- package/dist/preview/assets/{runtime-jrsJfwMb.js → runtime-Dsx8Y56q.js} +1 -1
- package/dist/preview/assets/{runtime-CqciI2ST.js → runtime-Dtc1ETUF.js} +1 -1
- package/dist/preview/assets/{runtime-aBsBSCeg.js → runtime-T_tUqLxO.js} +1 -1
- package/dist/preview/index.html +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-25/com.shwfed.table.column.combobox-multi/runtime.vue +1 -0
- 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-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +26 -26
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue +4 -14
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +26 -26
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +27 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.js +14 -11
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +26 -26
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue +4 -12
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +26 -26
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/runtime.vue +45 -12
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +27 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.js +14 -11
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +163 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue +699 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +163 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue +349 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +251 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.js +178 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +167 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue +732 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +167 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue +383 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +253 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.js +230 -0
- package/dist/runtime/components/table/config.vue +40 -0
- package/package.json +1 -1
- package/dist/preview/assets/index-B3wadvvl.js +0 -1
- package/dist/preview/assets/index-DTsYYECD.js +0 -643
|
@@ -40,8 +40,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
40
40
|
readonly readonly?: string | undefined;
|
|
41
41
|
readonly grow?: boolean | undefined;
|
|
42
42
|
readonly accessor: string;
|
|
43
|
-
readonly enableSorting?: boolean | undefined;
|
|
44
43
|
readonly options: {
|
|
44
|
+
readonly kind: "remote";
|
|
45
|
+
readonly request: string;
|
|
46
|
+
readonly options: string;
|
|
47
|
+
readonly optionValue: string;
|
|
48
|
+
readonly optionLabel: readonly [{
|
|
49
|
+
readonly locale: "zh";
|
|
50
|
+
readonly message: string;
|
|
51
|
+
}, ...{
|
|
52
|
+
readonly locale: "en" | "ja" | "ko";
|
|
53
|
+
readonly message: string;
|
|
54
|
+
}[]];
|
|
55
|
+
} | {
|
|
45
56
|
readonly kind: "static";
|
|
46
57
|
readonly items: readonly {
|
|
47
58
|
readonly label: readonly [{
|
|
@@ -67,19 +78,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
67
78
|
readonly kind: "number";
|
|
68
79
|
};
|
|
69
80
|
}[];
|
|
70
|
-
} | {
|
|
71
|
-
readonly kind: "remote";
|
|
72
|
-
readonly request: string;
|
|
73
|
-
readonly options: string;
|
|
74
|
-
readonly optionValue: string;
|
|
75
|
-
readonly optionLabel: readonly [{
|
|
76
|
-
readonly locale: "zh";
|
|
77
|
-
readonly message: string;
|
|
78
|
-
}, ...{
|
|
79
|
-
readonly locale: "en" | "ja" | "ko";
|
|
80
|
-
readonly message: string;
|
|
81
|
-
}[]];
|
|
82
81
|
};
|
|
82
|
+
readonly enableSorting?: boolean | undefined;
|
|
83
83
|
readonly successMessage?: string | undefined;
|
|
84
84
|
}) => any;
|
|
85
85
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -120,8 +120,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
120
120
|
readonly readonly?: string | undefined;
|
|
121
121
|
readonly grow?: boolean | undefined;
|
|
122
122
|
readonly accessor: string;
|
|
123
|
-
readonly enableSorting?: boolean | undefined;
|
|
124
123
|
readonly options: {
|
|
124
|
+
readonly kind: "remote";
|
|
125
|
+
readonly request: string;
|
|
126
|
+
readonly options: string;
|
|
127
|
+
readonly optionValue: string;
|
|
128
|
+
readonly optionLabel: readonly [{
|
|
129
|
+
readonly locale: "zh";
|
|
130
|
+
readonly message: string;
|
|
131
|
+
}, ...{
|
|
132
|
+
readonly locale: "en" | "ja" | "ko";
|
|
133
|
+
readonly message: string;
|
|
134
|
+
}[]];
|
|
135
|
+
} | {
|
|
125
136
|
readonly kind: "static";
|
|
126
137
|
readonly items: readonly {
|
|
127
138
|
readonly label: readonly [{
|
|
@@ -147,19 +158,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
147
158
|
readonly kind: "number";
|
|
148
159
|
};
|
|
149
160
|
}[];
|
|
150
|
-
} | {
|
|
151
|
-
readonly kind: "remote";
|
|
152
|
-
readonly request: string;
|
|
153
|
-
readonly options: string;
|
|
154
|
-
readonly optionValue: string;
|
|
155
|
-
readonly optionLabel: readonly [{
|
|
156
|
-
readonly locale: "zh";
|
|
157
|
-
readonly message: string;
|
|
158
|
-
}, ...{
|
|
159
|
-
readonly locale: "en" | "ja" | "ko";
|
|
160
|
-
readonly message: string;
|
|
161
|
-
}[]];
|
|
162
161
|
};
|
|
162
|
+
readonly enableSorting?: boolean | undefined;
|
|
163
163
|
readonly successMessage?: string | undefined;
|
|
164
164
|
}) => any) | undefined;
|
|
165
165
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,7 +4,7 @@ import { Effect } from "effect";
|
|
|
4
4
|
import { Fetch } from "fx-fetch";
|
|
5
5
|
import { watchDebounced } from "@vueuse/core";
|
|
6
6
|
import { toast } from "vue-sonner";
|
|
7
|
-
import { computed, ref
|
|
7
|
+
import { computed, ref } from "vue";
|
|
8
8
|
import { useI18n } from "vue-i18n";
|
|
9
9
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
10
10
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
@@ -204,7 +204,7 @@ function isEqual(a, b) {
|
|
|
204
204
|
}
|
|
205
205
|
return false;
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const committedEntries = computed(() => {
|
|
208
208
|
const list = [];
|
|
209
209
|
for (const v of cellValue.value) {
|
|
210
210
|
const entry = entries.value.find((e) => isEqual(e.value, v));
|
|
@@ -212,8 +212,14 @@ const selectedEntries = computed(() => {
|
|
|
212
212
|
}
|
|
213
213
|
return list;
|
|
214
214
|
});
|
|
215
|
-
const
|
|
215
|
+
const committedKeys = computed(() => committedEntries.value.map((e) => e.key));
|
|
216
|
+
const draftKeys = ref(null);
|
|
217
|
+
const draftDirty = ref(false);
|
|
218
|
+
const selectedKeys = computed(() => draftKeys.value ?? committedKeys.value);
|
|
216
219
|
const selectedKeySet = computed(() => new Set(selectedKeys.value));
|
|
220
|
+
const selectedEntries = computed(
|
|
221
|
+
() => selectedKeys.value.map((k) => entries.value.find((e) => e.key === k)).filter((e) => !!e)
|
|
222
|
+
);
|
|
217
223
|
const triggerLabel = computed(() => {
|
|
218
224
|
const arr = selectedEntries.value;
|
|
219
225
|
if (arr.length === 0) return "";
|
|
@@ -254,26 +260,51 @@ async function submit(next) {
|
|
|
254
260
|
pending.value = false;
|
|
255
261
|
}
|
|
256
262
|
}
|
|
257
|
-
function
|
|
258
|
-
|
|
263
|
+
async function commit(keys) {
|
|
264
|
+
draftKeys.value = [...keys];
|
|
259
265
|
const mapped = [];
|
|
260
266
|
for (const key of keys) {
|
|
261
267
|
const entry = entries.value.find((e) => e.key === key);
|
|
262
268
|
if (entry) mapped.push(entry.value);
|
|
263
269
|
}
|
|
264
|
-
|
|
270
|
+
try {
|
|
271
|
+
await submit(mapped);
|
|
272
|
+
} finally {
|
|
273
|
+
draftKeys.value = null;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
function handleSelect(next) {
|
|
277
|
+
const keys = Array.isArray(next) ? next.filter((k) => typeof k === "string") : [];
|
|
278
|
+
draftKeys.value = keys;
|
|
279
|
+
draftDirty.value = true;
|
|
265
280
|
}
|
|
266
281
|
const showClear = computed(
|
|
267
282
|
() => !isDisabled.value && selectedEntries.value.length > 0
|
|
268
283
|
);
|
|
284
|
+
const hoveredKey = ref(null);
|
|
285
|
+
function handleOpenChange(next) {
|
|
286
|
+
if (next === open.value) return;
|
|
287
|
+
open.value = next;
|
|
288
|
+
hoveredKey.value = next ? entries.value[0]?.key ?? null : null;
|
|
289
|
+
if (next) {
|
|
290
|
+
draftKeys.value = [...committedKeys.value];
|
|
291
|
+
draftDirty.value = false;
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
const wasDirty = draftDirty.value;
|
|
295
|
+
draftDirty.value = false;
|
|
296
|
+
if (!wasDirty) {
|
|
297
|
+
draftKeys.value = null;
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
void commit(draftKeys.value ?? []);
|
|
301
|
+
}
|
|
269
302
|
function handleClear() {
|
|
303
|
+
draftDirty.value = false;
|
|
270
304
|
open.value = false;
|
|
271
|
-
|
|
305
|
+
hoveredKey.value = null;
|
|
306
|
+
void commit([]);
|
|
272
307
|
}
|
|
273
|
-
const hoveredKey = ref(null);
|
|
274
|
-
watch(open, (isOpen) => {
|
|
275
|
-
hoveredKey.value = isOpen ? entries.value[0]?.key ?? null : null;
|
|
276
|
-
});
|
|
277
308
|
const hoveredEntry = computed(
|
|
278
309
|
() => entries.value.find((e) => e.key === hoveredKey.value)
|
|
279
310
|
);
|
|
@@ -297,7 +328,8 @@ const anyHasTooltip = computed(
|
|
|
297
328
|
</span>
|
|
298
329
|
<Popover
|
|
299
330
|
v-else
|
|
300
|
-
|
|
331
|
+
:open="open"
|
|
332
|
+
@update:open="handleOpenChange"
|
|
301
333
|
>
|
|
302
334
|
<PopoverAnchor as-child>
|
|
303
335
|
<InputGroup
|
|
@@ -347,6 +379,7 @@ const anyHasTooltip = computed(
|
|
|
347
379
|
<PopoverContent
|
|
348
380
|
class="w-auto p-0 [&_[data-slot=command-input-wrapper]]:h-7 [&_[data-slot=command-input-wrapper]]:px-2 [&_[data-slot=command-input-wrapper]_svg]:size-3 [&_[data-slot=command-input]]:h-7 [&_[data-slot=command-input]]:py-0 [&_[data-slot=command-input]]:text-[0.75rem] [&_[data-slot=command-item]]:px-2 [&_[data-slot=command-item]]:py-1 [&_[data-slot=command-item]]:text-[0.75rem]"
|
|
349
381
|
:style="{ width: 'var(--reka-popover-trigger-width)' }"
|
|
382
|
+
@focus-outside="(e) => e.preventDefault()"
|
|
350
383
|
>
|
|
351
384
|
<Command
|
|
352
385
|
:model-value="selectedKeys"
|
|
@@ -5,7 +5,7 @@ import type { ColumnDefDeps, MigrateFn, MigrateSource } from '../../../utils/res
|
|
|
5
5
|
export declare const type: "com.shwfed.table.column.combobox-multi.remote";
|
|
6
6
|
export declare const compatibilityDate: "2026-05-26";
|
|
7
7
|
export declare const metadata: {
|
|
8
|
-
readonly name: "
|
|
8
|
+
readonly name: "多选(远程)";
|
|
9
9
|
readonly icon: "fluent:cloud-arrow-up-20-regular";
|
|
10
10
|
};
|
|
11
11
|
export declare function itemSchema(configure: (env: Environment) => void): Schema.Struct<{
|
|
@@ -44,6 +44,32 @@ export declare function itemSchema(configure: (env: Environment) => void): Schem
|
|
|
44
44
|
message: Schema.SchemaClass<string, string, never>;
|
|
45
45
|
}>]>>>;
|
|
46
46
|
}>;
|
|
47
|
+
export declare function remoteOptionsSchema(configure: (env: Environment) => void): Schema.Struct<{
|
|
48
|
+
kind: Schema.Literal<["remote"]>;
|
|
49
|
+
request: Schema.Schema<string, string, never>;
|
|
50
|
+
options: Schema.Schema<string, string, never>;
|
|
51
|
+
optionValue: Schema.optionalWith<Schema.Schema<string, string, never>, {
|
|
52
|
+
default: () => string;
|
|
53
|
+
}>;
|
|
54
|
+
optionLabel: Schema.optionalWith<Schema.refine<readonly [{
|
|
55
|
+
readonly locale: "zh";
|
|
56
|
+
readonly message: string;
|
|
57
|
+
}, ...{
|
|
58
|
+
readonly locale: "en" | "ja" | "ko";
|
|
59
|
+
readonly message: string;
|
|
60
|
+
}[]], Schema.TupleType<readonly [Schema.Struct<{
|
|
61
|
+
locale: Schema.Literal<["zh"]>;
|
|
62
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
63
|
+
}>], [Schema.Struct<{
|
|
64
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
65
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
66
|
+
}>]>>, {
|
|
67
|
+
default: () => readonly [{
|
|
68
|
+
readonly locale: "zh";
|
|
69
|
+
readonly message: "";
|
|
70
|
+
}];
|
|
71
|
+
}>;
|
|
72
|
+
}>;
|
|
47
73
|
export declare function optionsSchema(configure: (env: Environment) => void): Schema.Union<[Schema.Struct<{
|
|
48
74
|
kind: Schema.Literal<["static"]>;
|
|
49
75
|
items: Schema.optionalWith<Schema.Array$<Schema.Struct<{
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
export const type = "com.shwfed.table.column.combobox-multi.remote";
|
|
13
13
|
export const compatibilityDate = "2026-05-26";
|
|
14
14
|
export const metadata = {
|
|
15
|
-
name: "\
|
|
15
|
+
name: "\u591A\u9009\uFF08\u8FDC\u7A0B\uFF09",
|
|
16
16
|
icon: "fluent:cloud-arrow-up-20-regular"
|
|
17
17
|
};
|
|
18
18
|
const isListType = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
@@ -45,8 +45,7 @@ export function itemSchema(configure) {
|
|
|
45
45
|
title: "ComboboxMultiRemoteItem"
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
export function
|
|
49
|
-
const Item = itemSchema(configure);
|
|
48
|
+
export function remoteOptionsSchema(configure) {
|
|
50
49
|
const CelRequest = Expression({
|
|
51
50
|
configure: (env) => {
|
|
52
51
|
configure(env);
|
|
@@ -77,14 +76,7 @@ export function optionsSchema(configure) {
|
|
|
77
76
|
env.registerVariable("option", "dyn", { description: "`\u9009\u9879` \u8868\u8FBE\u5F0F\u4EA7\u51FA\u7684\u6570\u7EC4\u4E2D\u8FED\u4EE3\u5230\u7684\u5355\u4E2A\u5143\u7D20" });
|
|
78
77
|
}
|
|
79
78
|
});
|
|
80
|
-
|
|
81
|
-
kind: Schema.Literal("static"),
|
|
82
|
-
items: Schema.optionalWith(Schema.Array(Item).annotations({
|
|
83
|
-
title: "\u9009\u9879",
|
|
84
|
-
description: "\u4E0B\u62C9\u6846\u53EF\u9009\u9879\u5217\u8868"
|
|
85
|
-
}), { default: () => [] })
|
|
86
|
-
}).annotations({ title: "ComboboxMultiRemoteOptionsStatic", description: "\u9759\u6001\u914D\u7F6E\u7684\u9009\u9879\u5217\u8868" });
|
|
87
|
-
const RemoteSpec = Schema.Struct({
|
|
79
|
+
return Schema.Struct({
|
|
88
80
|
kind: Schema.Literal("remote"),
|
|
89
81
|
request: CelRequest.annotations({
|
|
90
82
|
title: "\u8BF7\u6C42",
|
|
@@ -103,6 +95,17 @@ export function optionsSchema(configure) {
|
|
|
103
95
|
description: "\u6BCF\u4E2A\u9009\u9879\u5C55\u793A\u7684\u672C\u5730\u5316\u6587\u672C\uFF0C\u652F\u6301 `{{ string(option.foo) }}` \u63D2\u503C"
|
|
104
96
|
}), { default: () => [{ locale: "zh", message: "" }] })
|
|
105
97
|
}).annotations({ title: "ComboboxMultiRemoteOptionsRemote", description: "\u8FDC\u7A0B\u52A0\u8F7D\u7684\u9009\u9879\u5217\u8868" });
|
|
98
|
+
}
|
|
99
|
+
export function optionsSchema(configure) {
|
|
100
|
+
const Item = itemSchema(configure);
|
|
101
|
+
const StaticSpec = Schema.Struct({
|
|
102
|
+
kind: Schema.Literal("static"),
|
|
103
|
+
items: Schema.optionalWith(Schema.Array(Item).annotations({
|
|
104
|
+
title: "\u9009\u9879",
|
|
105
|
+
description: "\u4E0B\u62C9\u6846\u53EF\u9009\u9879\u5217\u8868"
|
|
106
|
+
}), { default: () => [] })
|
|
107
|
+
}).annotations({ title: "ComboboxMultiRemoteOptionsStatic", description: "\u9759\u6001\u914D\u7F6E\u7684\u9009\u9879\u5217\u8868" });
|
|
108
|
+
const RemoteSpec = remoteOptionsSchema(configure);
|
|
106
109
|
return Schema.Union(StaticSpec, RemoteSpec).annotations({
|
|
107
110
|
title: "\u9009\u9879\u6765\u6E90",
|
|
108
111
|
description: '\u9009\u9879\u53EF\u4EE5\u662F\u9759\u6001\u914D\u7F6E\uFF08`kind: "static"`\uFF09\u6216\u7531\u8FDC\u7A0B\u63A5\u53E3\u52A0\u8F7D\uFF08`kind: "remote"`\uFF09'
|
|
@@ -0,0 +1,163 @@
|
|
|
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.combobox-single";
|
|
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-26";
|
|
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 readonly?: string | undefined;
|
|
36
|
+
readonly grow?: boolean | undefined;
|
|
37
|
+
readonly binding: string;
|
|
38
|
+
readonly derived?: {
|
|
39
|
+
readonly mode: "formula" | "prefill";
|
|
40
|
+
readonly expression: string;
|
|
41
|
+
} | undefined;
|
|
42
|
+
readonly options: {
|
|
43
|
+
readonly kind: "remote";
|
|
44
|
+
readonly request: string;
|
|
45
|
+
readonly options: string;
|
|
46
|
+
readonly optionValue: string;
|
|
47
|
+
readonly optionLabel: readonly [{
|
|
48
|
+
readonly locale: "zh";
|
|
49
|
+
readonly message: string;
|
|
50
|
+
}, ...{
|
|
51
|
+
readonly locale: "en" | "ja" | "ko";
|
|
52
|
+
readonly message: string;
|
|
53
|
+
}[]];
|
|
54
|
+
} | {
|
|
55
|
+
readonly kind: "static";
|
|
56
|
+
readonly items: readonly {
|
|
57
|
+
readonly label: readonly [{
|
|
58
|
+
readonly locale: "zh";
|
|
59
|
+
readonly message: string;
|
|
60
|
+
}, ...{
|
|
61
|
+
readonly locale: "en" | "ja" | "ko";
|
|
62
|
+
readonly message: string;
|
|
63
|
+
}[]];
|
|
64
|
+
readonly id: string;
|
|
65
|
+
readonly tooltip?: readonly [{
|
|
66
|
+
readonly locale: "zh";
|
|
67
|
+
readonly message: string;
|
|
68
|
+
}, ...{
|
|
69
|
+
readonly locale: "en" | "ja" | "ko";
|
|
70
|
+
readonly message: string;
|
|
71
|
+
}[]] | undefined;
|
|
72
|
+
readonly value: {
|
|
73
|
+
readonly value: string;
|
|
74
|
+
readonly kind: "text";
|
|
75
|
+
} | {
|
|
76
|
+
readonly value: number;
|
|
77
|
+
readonly kind: "number";
|
|
78
|
+
};
|
|
79
|
+
}[];
|
|
80
|
+
};
|
|
81
|
+
readonly enableSorting?: boolean | undefined;
|
|
82
|
+
}) => any;
|
|
83
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
84
|
+
"onUpdate:modelValue"?: ((value: {
|
|
85
|
+
readonly size?: number | undefined;
|
|
86
|
+
readonly disabled?: string | undefined;
|
|
87
|
+
readonly type: "com.shwfed.table.column.combobox-single";
|
|
88
|
+
readonly id: string;
|
|
89
|
+
readonly title: readonly [{
|
|
90
|
+
readonly locale: "zh";
|
|
91
|
+
readonly message: string;
|
|
92
|
+
}, ...{
|
|
93
|
+
readonly locale: "en" | "ja" | "ko";
|
|
94
|
+
readonly message: string;
|
|
95
|
+
}[]];
|
|
96
|
+
readonly hidden?: string | undefined;
|
|
97
|
+
readonly tooltip?: readonly [{
|
|
98
|
+
readonly locale: "zh";
|
|
99
|
+
readonly message: string;
|
|
100
|
+
}, ...{
|
|
101
|
+
readonly locale: "en" | "ja" | "ko";
|
|
102
|
+
readonly message: string;
|
|
103
|
+
}[]] | undefined;
|
|
104
|
+
readonly compatibilityDate: "2026-05-26";
|
|
105
|
+
readonly groupId?: string | undefined;
|
|
106
|
+
readonly placeholder?: readonly [{
|
|
107
|
+
readonly locale: "zh";
|
|
108
|
+
readonly message: string;
|
|
109
|
+
}, ...{
|
|
110
|
+
readonly locale: "en" | "ja" | "ko";
|
|
111
|
+
readonly message: string;
|
|
112
|
+
}[]] | undefined;
|
|
113
|
+
readonly readonly?: string | undefined;
|
|
114
|
+
readonly grow?: boolean | undefined;
|
|
115
|
+
readonly binding: string;
|
|
116
|
+
readonly derived?: {
|
|
117
|
+
readonly mode: "formula" | "prefill";
|
|
118
|
+
readonly expression: string;
|
|
119
|
+
} | undefined;
|
|
120
|
+
readonly options: {
|
|
121
|
+
readonly kind: "remote";
|
|
122
|
+
readonly request: string;
|
|
123
|
+
readonly options: string;
|
|
124
|
+
readonly optionValue: string;
|
|
125
|
+
readonly optionLabel: readonly [{
|
|
126
|
+
readonly locale: "zh";
|
|
127
|
+
readonly message: string;
|
|
128
|
+
}, ...{
|
|
129
|
+
readonly locale: "en" | "ja" | "ko";
|
|
130
|
+
readonly message: string;
|
|
131
|
+
}[]];
|
|
132
|
+
} | {
|
|
133
|
+
readonly kind: "static";
|
|
134
|
+
readonly items: readonly {
|
|
135
|
+
readonly label: readonly [{
|
|
136
|
+
readonly locale: "zh";
|
|
137
|
+
readonly message: string;
|
|
138
|
+
}, ...{
|
|
139
|
+
readonly locale: "en" | "ja" | "ko";
|
|
140
|
+
readonly message: string;
|
|
141
|
+
}[]];
|
|
142
|
+
readonly id: string;
|
|
143
|
+
readonly tooltip?: readonly [{
|
|
144
|
+
readonly locale: "zh";
|
|
145
|
+
readonly message: string;
|
|
146
|
+
}, ...{
|
|
147
|
+
readonly locale: "en" | "ja" | "ko";
|
|
148
|
+
readonly message: string;
|
|
149
|
+
}[]] | undefined;
|
|
150
|
+
readonly value: {
|
|
151
|
+
readonly value: string;
|
|
152
|
+
readonly kind: "text";
|
|
153
|
+
} | {
|
|
154
|
+
readonly value: number;
|
|
155
|
+
readonly kind: "number";
|
|
156
|
+
};
|
|
157
|
+
}[];
|
|
158
|
+
};
|
|
159
|
+
readonly enableSorting?: boolean | undefined;
|
|
160
|
+
}) => any) | undefined;
|
|
161
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
162
|
+
declare const _default: typeof __VLS_export;
|
|
163
|
+
export default _default;
|