@shwfed/config 2.3.24 → 2.3.25

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.
Files changed (59) hide show
  1. package/dist/mcp.mjs +1059 -634
  2. package/dist/module.json +1 -1
  3. package/dist/preview/assets/{config-DYAEfkYR.js → config-BYTuKQZr.js} +1 -1
  4. package/dist/preview/assets/{config-D5Kfssb7.js → config-BoE06fMj.js} +1 -1
  5. package/dist/preview/assets/{config-CWZxlCMJ.js → config-CV5P2_b2.js} +1 -1
  6. package/dist/preview/assets/{config-CaZpOvHG.js → config-CVAFGzPb.js} +1 -1
  7. package/dist/preview/assets/{config-B3at5Bue.js → config-CdH0Nxqa.js} +1 -1
  8. package/dist/preview/assets/{config-B-6Htwv0.js → config-CjlRnKnY.js} +1 -1
  9. package/dist/preview/assets/{config-CBHKrOP5.js → config-CrvG15To.js} +1 -1
  10. package/dist/preview/assets/{config-Bi9uFh4Y.js → config-DZXC8YJ4.js} +1 -1
  11. package/dist/preview/assets/{config-B2KjxFl5.js → config-QaYy6DCp.js} +1 -1
  12. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-8BVrrrak.js → definition.vue_vue_type_script_setup_true_lang-CBPR0zl_.js} +1 -1
  13. package/dist/preview/assets/{index-CJMxrUKZ.css → index-BCE-G4Ha.css} +1 -1
  14. package/dist/preview/assets/index-BbnG2cVz.js +643 -0
  15. package/dist/preview/assets/index-NFKAYzMi.js +1 -0
  16. package/dist/preview/assets/{runtime-C1iENPNJ.js → runtime-1AP_-j3e.js} +1 -1
  17. package/dist/preview/assets/{runtime-CEP42oTV.js → runtime-BQiYt6n7.js} +1 -1
  18. package/dist/preview/assets/{runtime-aBsBSCeg.js → runtime-BsiLYYky.js} +1 -1
  19. package/dist/preview/assets/{runtime-CoRrnGx1.js → runtime-C-h7PIyx.js} +1 -1
  20. package/dist/preview/assets/{runtime-CRHn61GX.js → runtime-CGW3z1YJ.js} +1 -1
  21. package/dist/preview/assets/{runtime-Hvzx1ucy.js → runtime-C_R-VCbd.js} +1 -1
  22. package/dist/preview/assets/{runtime-C5CCMnHt.js → runtime-DGdEDDUA.js} +1 -1
  23. package/dist/preview/assets/{runtime-jrsJfwMb.js → runtime-DwXjew7j.js} +1 -1
  24. package/dist/preview/assets/{runtime-CqciI2ST.js → runtime-pM3u8QsQ.js} +1 -1
  25. package/dist/preview/index.html +2 -2
  26. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +4 -4
  27. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +4 -4
  28. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +4 -4
  29. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +4 -4
  30. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +26 -26
  31. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue +4 -14
  32. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +26 -26
  33. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +27 -1
  34. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.js +14 -11
  35. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +26 -26
  36. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue +4 -12
  37. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +26 -26
  38. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +27 -1
  39. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.js +14 -11
  40. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +163 -0
  41. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue +699 -0
  42. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +163 -0
  43. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.d.vue.ts +9 -0
  44. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue +349 -0
  45. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue.d.ts +9 -0
  46. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +251 -0
  47. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.js +178 -0
  48. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +167 -0
  49. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue +732 -0
  50. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +167 -0
  51. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.d.vue.ts +9 -0
  52. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue +383 -0
  53. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue.d.ts +9 -0
  54. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +253 -0
  55. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.js +230 -0
  56. package/dist/runtime/components/table/config.vue +40 -0
  57. package/package.json +1 -1
  58. package/dist/preview/assets/index-B3wadvvl.js +0 -1
  59. 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>;
@@ -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: "\u4E0B\u62C9\u591A\u9009\uFF08\u8FDC\u7A0B\u5199\u5165\uFF09",
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 optionsSchema(configure) {
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
- const StaticSpec = Schema.Struct({
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;