@shwfed/config 2.5.0 → 2.5.1

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 (113) hide show
  1. package/dist/mcp.mjs +135 -21
  2. package/dist/module.json +1 -1
  3. package/dist/preview/assets/{config-C_bBX0wD.js → config-2hrRmW-I.js} +1 -1
  4. package/dist/preview/assets/{config-BkytEQN5.js → config-BfzthOw9.js} +1 -1
  5. package/dist/preview/assets/{config-Dx0zHfGt.js → config-BsgSoDjY.js} +1 -1
  6. package/dist/preview/assets/{config-dwcdYHd4.js → config-CaLzEMyt.js} +1 -1
  7. package/dist/preview/assets/{config-E-DM6b5t.js → config-DKtPKn2s.js} +1 -1
  8. package/dist/preview/assets/{config-DYL6kHr3.js → config-DdgZWox9.js} +1 -1
  9. package/dist/preview/assets/{config-PjseWUbC.js → config-h_LH1CT_.js} +1 -1
  10. package/dist/preview/assets/{config-Cbn8o9BY.js → config-nsiwkAq8.js} +1 -1
  11. package/dist/preview/assets/{config-CK011_jJ.js → config-zxVo1EOM.js} +1 -1
  12. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-uJFJXxli.js → definition.vue_vue_type_script_setup_true_lang-CLpbGZ37.js} +1 -1
  13. package/dist/preview/assets/index-C0NJ1FZp.js +1 -0
  14. package/dist/preview/assets/{index-x-77enex.js → index-C5dK4QAf.js} +102 -102
  15. package/dist/preview/assets/{index-7MVXgV5n.css → index-nvAUAYGM.css} +1 -1
  16. package/dist/preview/assets/{runtime-D4_9FCLy.js → runtime-527oKJb4.js} +1 -1
  17. package/dist/preview/assets/{runtime-ZQryOEKm.js → runtime-BLhH77F7.js} +1 -1
  18. package/dist/preview/assets/{runtime-DJHpCLnr.js → runtime-BRWnAaFs.js} +1 -1
  19. package/dist/preview/assets/{runtime-CHLboM_z.js → runtime-CEXA5ttw.js} +1 -1
  20. package/dist/preview/assets/{runtime-DKq86fZU.js → runtime-CZZWuLu9.js} +1 -1
  21. package/dist/preview/assets/{runtime-BRMGkqSr.js → runtime-DOLtY37Y.js} +1 -1
  22. package/dist/preview/assets/{runtime-CeHdesjP.js → runtime-DZqXButD.js} +1 -1
  23. package/dist/preview/assets/{runtime-DHBTDws7.js → runtime-MJo092Ed.js} +1 -1
  24. package/dist/preview/assets/{runtime-DjpjaNec.js → runtime-i3-6DCWP.js} +1 -1
  25. package/dist/preview/index.html +2 -2
  26. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +2 -2
  27. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +2 -2
  28. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +2 -2
  29. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +2 -2
  30. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +2 -2
  31. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +2 -2
  32. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +20 -20
  33. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +20 -20
  34. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +20 -20
  35. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +20 -20
  36. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +20 -20
  37. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +20 -20
  38. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +20 -20
  39. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +20 -20
  40. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +20 -20
  41. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +20 -20
  42. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +20 -20
  43. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +20 -20
  44. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +20 -20
  45. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +20 -20
  46. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +1 -0
  47. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.js +8 -0
  48. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +1 -0
  49. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.js +8 -0
  50. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue +1 -0
  51. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +1 -0
  52. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.js +7 -0
  53. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +1 -0
  54. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.js +7 -0
  55. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue +1 -0
  56. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +1 -0
  57. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.js +8 -0
  58. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.d.ts +1 -0
  59. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.js +5 -0
  60. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue +1 -0
  61. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +1 -0
  62. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.js +7 -0
  63. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.vue +1 -0
  64. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +1 -0
  65. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +1 -0
  66. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +7 -0
  67. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +1 -0
  68. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +7 -0
  69. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +1 -0
  70. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +7 -0
  71. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +1 -0
  72. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +7 -0
  73. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -6
  74. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue +1 -0
  75. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
  76. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +4 -4
  77. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +4 -4
  78. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
  79. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue +1 -0
  80. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
  81. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +4 -4
  82. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +4 -4
  83. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  84. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  85. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +6 -6
  86. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +6 -6
  87. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  88. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  89. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +6 -6
  90. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +6 -6
  91. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +6 -6
  92. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +6 -6
  93. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -4
  94. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -4
  95. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +4 -4
  96. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +4 -4
  97. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
  98. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.js +8 -0
  99. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +4 -4
  100. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +4 -4
  101. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
  102. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.js +8 -0
  103. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +6 -6
  104. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +6 -6
  105. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.js +3 -0
  106. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -4
  107. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -4
  108. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.js +3 -0
  109. package/dist/runtime/components/table/config.vue +4 -58
  110. package/dist/runtime/components/table/utils/resolve.d.ts +14 -0
  111. package/dist/runtime/components/table/utils/resolve.js +2 -1
  112. package/package.json +1 -1
  113. package/dist/preview/assets/index-CmPiZG_4.js +0 -1
@@ -46,16 +46,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
46
46
  readonly data: string;
47
47
  readonly request?: string | undefined;
48
48
  };
49
- readonly nodeKey: string;
50
- readonly nodeChildren: string;
51
- readonly nodeLabel: readonly [{
52
- readonly locale: "zh";
53
- readonly message: string;
54
- }, ...{
55
- readonly locale: "en" | "ja" | "ko";
56
- readonly message: string;
57
- }[]];
58
- readonly expandAll: boolean;
59
49
  readonly validations?: readonly {
60
50
  readonly message: readonly [{
61
51
  readonly locale: "zh";
@@ -67,6 +57,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
57
  readonly warning?: boolean | undefined;
68
58
  readonly when: string;
69
59
  }[] | undefined;
60
+ readonly nodeKey: string;
61
+ readonly nodeChildren: string;
62
+ readonly nodeLabel: readonly [{
63
+ readonly locale: "zh";
64
+ readonly message: string;
65
+ }, ...{
66
+ readonly locale: "en" | "ja" | "ko";
67
+ readonly message: string;
68
+ }[]];
70
69
  readonly nodeTooltip?: readonly [{
71
70
  readonly locale: "zh";
72
71
  readonly message: string;
@@ -75,6 +74,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
75
74
  readonly message: string;
76
75
  }[]] | undefined;
77
76
  readonly nodeSelectable?: string | undefined;
77
+ readonly expandAll: boolean;
78
78
  }) => any;
79
79
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
80
80
  "onUpdate:modelValue"?: ((value: {
@@ -120,16 +120,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
120
120
  readonly data: string;
121
121
  readonly request?: string | undefined;
122
122
  };
123
- readonly nodeKey: string;
124
- readonly nodeChildren: string;
125
- readonly nodeLabel: readonly [{
126
- readonly locale: "zh";
127
- readonly message: string;
128
- }, ...{
129
- readonly locale: "en" | "ja" | "ko";
130
- readonly message: string;
131
- }[]];
132
- readonly expandAll: boolean;
133
123
  readonly validations?: readonly {
134
124
  readonly message: readonly [{
135
125
  readonly locale: "zh";
@@ -141,6 +131,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
141
131
  readonly warning?: boolean | undefined;
142
132
  readonly when: string;
143
133
  }[] | undefined;
134
+ readonly nodeKey: string;
135
+ readonly nodeChildren: string;
136
+ readonly nodeLabel: readonly [{
137
+ readonly locale: "zh";
138
+ readonly message: string;
139
+ }, ...{
140
+ readonly locale: "en" | "ja" | "ko";
141
+ readonly message: string;
142
+ }[]];
144
143
  readonly nodeTooltip?: readonly [{
145
144
  readonly locale: "zh";
146
145
  readonly message: string;
@@ -149,6 +148,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
149
148
  readonly message: string;
150
149
  }[]] | undefined;
151
150
  readonly nodeSelectable?: string | undefined;
151
+ readonly expandAll: boolean;
152
152
  }) => any) | undefined;
153
153
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
154
154
  declare const _default: typeof __VLS_export;
@@ -149,4 +149,5 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
149
149
  compatibilityDate: Schema.Literal<["2026-04-14"]>;
150
150
  }>;
151
151
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
152
+ export declare function defaults(): Partial<Value>;
152
153
  export declare function toColumnDef(value: Value, { getLocaleText }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
@@ -32,6 +32,14 @@ export function schema(configure) {
32
32
  ...actionFieldsForColumn
33
33
  }).annotations({ title: "ActionsRenderer", description: "\u64CD\u4F5C\u6E32\u67D3\u5668" });
34
34
  }
35
+ export function defaults() {
36
+ return {
37
+ title: [{ locale: "zh", message: "" }],
38
+ size: 200,
39
+ groups: [],
40
+ items: []
41
+ };
42
+ }
35
43
  export function toColumnDef(value, { getLocaleText }) {
36
44
  return {
37
45
  header: value.title ? getLocaleText(value.title) : void 0,
@@ -38,4 +38,5 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
38
38
  compatibilityDate: Schema.Literal<["2026-04-14"]>;
39
39
  }>;
40
40
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
41
+ export declare function defaults(): Partial<Value>;
41
42
  export declare function toColumnDef(value: Value, { getLocaleText, $cel, inheritedContext }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
@@ -21,6 +21,14 @@ export function schema(configure) {
21
21
  })
22
22
  }).annotations({ title: "DateRenderer", description: "\u65E5\u671F\u6E32\u67D3\u5668" });
23
23
  }
24
+ export function defaults() {
25
+ return {
26
+ title: [{ locale: "zh", message: "" }],
27
+ accessor: "",
28
+ format: "yyyy-MM-dd",
29
+ size: 120
30
+ };
31
+ }
24
32
  export function toColumnDef(value, { getLocaleText, $cel, inheritedContext }) {
25
33
  return {
26
34
  header: getLocaleText(value.title),
@@ -9,6 +9,7 @@ import {
9
9
  InputGroup,
10
10
  InputGroupAddon,
11
11
  InputGroupButton,
12
+ InputGroupInput,
12
13
  InputGroupNumberField
13
14
  } from "../../../../ui/input-group";
14
15
  import {
@@ -38,4 +38,5 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
38
38
  compatibilityDate: Schema.Literal<["2026-04-14"]>;
39
39
  }>;
40
40
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
41
+ export declare function defaults(): Partial<Value>;
41
42
  export declare function toColumnDef(value: Value, { getLocaleText, $cel, inheritedContext }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
@@ -24,6 +24,13 @@ export function schema(configure) {
24
24
  align: Schema.optionalWith(Align.annotations({ title: "\u5BF9\u9F50" }), { default: () => "center" })
25
25
  }).annotations({ title: "IconRenderer", description: "\u56FE\u6807\u6E32\u67D3\u5668" });
26
26
  }
27
+ export function defaults() {
28
+ return {
29
+ title: [{ locale: "zh", message: "" }],
30
+ accessor: "",
31
+ size: 120
32
+ };
33
+ }
27
34
  export function toColumnDef(value, { getLocaleText, $cel, inheritedContext }) {
28
35
  return {
29
36
  header: getLocaleText(value.title),
@@ -48,4 +48,5 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
48
48
  compatibilityDate: Schema.Literal<["2026-04-14"]>;
49
49
  }>;
50
50
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
51
+ export declare function defaults(): Partial<Value>;
51
52
  export declare function toColumnDef(value: Value, { getLocaleText }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
@@ -39,6 +39,13 @@ export function schema(configure) {
39
39
  }))
40
40
  }).annotations({ title: "MarkdownRenderer", description: "MD" });
41
41
  }
42
+ export function defaults() {
43
+ return {
44
+ title: [{ locale: "zh", message: "" }],
45
+ markdown: [{ locale: "zh", message: "" }],
46
+ size: 120
47
+ };
48
+ }
42
49
  export function toColumnDef(value, { getLocaleText }) {
43
50
  return {
44
51
  header: getLocaleText(value.title),
@@ -9,6 +9,7 @@ import {
9
9
  InputGroup,
10
10
  InputGroupAddon,
11
11
  InputGroupButton,
12
+ InputGroupInput,
12
13
  InputGroupNumberField
13
14
  } from "../../../../ui/input-group";
14
15
  import {
@@ -42,4 +42,5 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
42
42
  compatibilityDate: Schema.Literal<["2026-04-14"]>;
43
43
  }>;
44
44
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
45
+ export declare function defaults(): Partial<Value>;
45
46
  export declare function toColumnDef(value: Value, { getLocaleText, $cel, inheritedContext }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
@@ -29,6 +29,14 @@ export function schema(configure) {
29
29
  }))
30
30
  }).annotations({ title: "NumberRenderer", description: "\u6570\u503C\u6E32\u67D3\u5668" });
31
31
  }
32
+ export function defaults() {
33
+ return {
34
+ title: [{ locale: "zh", message: "" }],
35
+ accessor: "",
36
+ size: 120,
37
+ align: "right"
38
+ };
39
+ }
32
40
  export function toColumnDef(value, { getLocaleText, $cel, inheritedContext }) {
33
41
  return {
34
42
  header: getLocaleText(value.title),
@@ -19,4 +19,5 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
19
19
  compatibilityDate: Schema.Literal<["2026-04-14"]>;
20
20
  }>;
21
21
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
22
+ export declare function defaults(): Partial<Value>;
22
23
  export declare function toColumnDef(value: Value): Partial<ColumnDef<unknown, unknown>>;
@@ -35,6 +35,11 @@ export function schema(configure) {
35
35
  })
36
36
  }).annotations({ title: "SelectRenderer", description: "\u9009\u62E9\u6E32\u67D3\u5668" });
37
37
  }
38
+ export function defaults() {
39
+ return {
40
+ mode: "checkbox"
41
+ };
42
+ }
38
43
  export function toColumnDef(value) {
39
44
  return {
40
45
  header: (ctx) => h(Header, { column: value, ctx }),
@@ -10,6 +10,7 @@ import {
10
10
  InputGroup,
11
11
  InputGroupAddon,
12
12
  InputGroupButton,
13
+ InputGroupInput,
13
14
  InputGroupNumberField
14
15
  } from "../../../../ui/input-group";
15
16
  import {
@@ -41,4 +41,5 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
41
41
  compatibilityDate: Schema.Literal<["2026-04-14"]>;
42
42
  }>;
43
43
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
44
+ export declare function defaults(): Partial<Value>;
44
45
  export declare function toColumnDef(value: Value, { getLocaleText, $cel, inheritedContext }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
@@ -27,6 +27,13 @@ export function schema(configure) {
27
27
  }))
28
28
  }).annotations({ title: "TextRenderer", description: "\u6587\u672C\u6E32\u67D3\u5668" });
29
29
  }
30
+ export function defaults() {
31
+ return {
32
+ title: [{ locale: "zh", message: "" }],
33
+ accessor: "",
34
+ size: 120
35
+ };
36
+ }
30
37
  export function toColumnDef(value, { getLocaleText, $cel, inheritedContext }) {
31
38
  return {
32
39
  header: getLocaleText(value.title),
@@ -9,6 +9,7 @@ import {
9
9
  InputGroup,
10
10
  InputGroupAddon,
11
11
  InputGroupButton,
12
+ InputGroupInput,
12
13
  InputGroupNumberField
13
14
  } from "../../../../ui/input-group";
14
15
  import {
@@ -9,6 +9,7 @@ import {
9
9
  InputGroup,
10
10
  InputGroupAddon,
11
11
  InputGroupButton,
12
+ InputGroupInput,
12
13
  InputGroupNumberField
13
14
  } from "../../../../ui/input-group";
14
15
  import {
@@ -44,6 +44,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
44
44
  compatibilityDate: Schema.Literal<["2026-05-13"]>;
45
45
  }>;
46
46
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
47
+ export declare function defaults(): Partial<Value>;
47
48
  /**
48
49
  * Adopts values that were stored under the pre-split `com.shwfed.table.column.switch`
49
50
  * type at the same `compatibilityDate`. The field shape is byte-identical to
@@ -48,6 +48,13 @@ export function schema(configure) {
48
48
  }))
49
49
  }).annotations({ title: "SwitchRenderer", description: "\u5F00\u5173\u6E32\u67D3\u5668\uFF08\u53EF\u7F16\u8F91\uFF09" });
50
50
  }
51
+ export function defaults() {
52
+ return {
53
+ title: [{ locale: "zh", message: "" }],
54
+ accessor: "",
55
+ size: 120
56
+ };
57
+ }
51
58
  export const migrateFrom = [
52
59
  { type: "com.shwfed.table.column.switch", compatibilityDate }
53
60
  ];
@@ -54,4 +54,5 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
54
54
  compatibilityDate: Schema.Literal<["2026-05-20"]>;
55
55
  }>;
56
56
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
57
+ export declare function defaults(): Partial<Value>;
57
58
  export declare function toColumnDef(value: Value, { getLocaleText }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
@@ -58,6 +58,13 @@ export function schema(configure) {
58
58
  derived: derivedRowField(configure, "number")
59
59
  }).annotations({ title: "NumberInputRenderer", description: "\u6570\u503C\u8F93\u5165\u6E32\u67D3\u5668\uFF08\u53EF\u7F16\u8F91\uFF09" });
60
60
  }
61
+ export function defaults() {
62
+ return {
63
+ title: [{ locale: "zh", message: "" }],
64
+ binding: "",
65
+ size: 120
66
+ };
67
+ }
61
68
  export function toColumnDef(value, { getLocaleText }) {
62
69
  return {
63
70
  header: editableHeader(getLocaleText(value.title)),
@@ -55,6 +55,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
55
55
  compatibilityDate: Schema.Literal<["2026-05-20"]>;
56
56
  }>;
57
57
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
58
+ export declare function defaults(): Partial<Value>;
58
59
  /**
59
60
  * Adopts values that were stored under the pre-split `com.shwfed.table.column.switch`
60
61
  * type at the same `compatibilityDate`. The field shape is byte-identical to
@@ -37,6 +37,13 @@ export function schema(configure) {
37
37
  derived: derivedRowField(configure, "bool")
38
38
  }).annotations({ title: "SwitchRenderer", description: "\u5F00\u5173\u6E32\u67D3\u5668\uFF08\u53EF\u7F16\u8F91\u3001\u672C\u5730\uFF09" });
39
39
  }
40
+ export function defaults() {
41
+ return {
42
+ title: [{ locale: "zh", message: "" }],
43
+ binding: "",
44
+ size: 120
45
+ };
46
+ }
40
47
  export const migrateFrom = [
41
48
  { type: "com.shwfed.table.column.switch", compatibilityDate }
42
49
  ];
@@ -48,4 +48,5 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
48
48
  compatibilityDate: Schema.Literal<["2026-05-20"]>;
49
49
  }>;
50
50
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
51
+ export declare function defaults(): Partial<Value>;
51
52
  export declare function toColumnDef(value: Value, { getLocaleText }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
@@ -33,6 +33,13 @@ export function schema(configure) {
33
33
  derived: derivedRowField(configure, "string")
34
34
  }).annotations({ title: "TextInputRenderer", description: "\u6587\u672C\u8F93\u5165\u6E32\u67D3\u5668\uFF08\u53EF\u7F16\u8F91\uFF09" });
35
35
  }
36
+ export function defaults() {
37
+ return {
38
+ title: [{ locale: "zh", message: "" }],
39
+ binding: "",
40
+ size: 120
41
+ };
42
+ }
36
43
  export function toColumnDef(value, { getLocaleText }) {
37
44
  return {
38
45
  header: editableHeader(getLocaleText(value.title)),
@@ -40,9 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
40
40
  readonly readonly?: string | undefined;
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
- readonly accessor: string;
44
- readonly options: string;
45
43
  readonly enableSorting?: boolean | undefined;
44
+ readonly options: string;
46
45
  readonly optionValue: string;
47
46
  readonly optionLabel: readonly [{
48
47
  readonly locale: "zh";
@@ -51,8 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
51
50
  readonly locale: "en" | "ja" | "ko";
52
51
  readonly message: string;
53
52
  }[]];
54
- readonly sortKey?: string | undefined;
55
53
  readonly successMessage?: string | undefined;
54
+ readonly accessor: string;
55
+ readonly sortKey?: string | undefined;
56
56
  }) => any;
57
57
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
58
58
  "onUpdate:modelValue"?: ((value: {
@@ -92,9 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
92
92
  readonly readonly?: string | undefined;
93
93
  readonly request: string;
94
94
  readonly grow?: boolean | undefined;
95
- readonly accessor: string;
96
- readonly options: string;
97
95
  readonly enableSorting?: boolean | undefined;
96
+ readonly options: string;
98
97
  readonly optionValue: string;
99
98
  readonly optionLabel: readonly [{
100
99
  readonly locale: "zh";
@@ -103,8 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
102
  readonly locale: "en" | "ja" | "ko";
104
103
  readonly message: string;
105
104
  }[]];
106
- readonly sortKey?: string | undefined;
107
105
  readonly successMessage?: string | undefined;
106
+ readonly accessor: string;
107
+ readonly sortKey?: string | undefined;
108
108
  }) => any) | undefined;
109
109
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
110
110
  declare const _default: typeof __VLS_export;
@@ -9,6 +9,7 @@ import {
9
9
  InputGroup,
10
10
  InputGroupAddon,
11
11
  InputGroupButton,
12
+ InputGroupInput,
12
13
  InputGroupNumberField
13
14
  } from "../../../../ui/input-group";
14
15
  import { getStructFieldDescription, getStructFieldTitle } from "../../../utils/schema-meta";
@@ -40,9 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
40
40
  readonly readonly?: string | undefined;
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
- readonly accessor: string;
44
- readonly options: string;
45
43
  readonly enableSorting?: boolean | undefined;
44
+ readonly options: string;
46
45
  readonly optionValue: string;
47
46
  readonly optionLabel: readonly [{
48
47
  readonly locale: "zh";
@@ -51,8 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
51
50
  readonly locale: "en" | "ja" | "ko";
52
51
  readonly message: string;
53
52
  }[]];
54
- readonly sortKey?: string | undefined;
55
53
  readonly successMessage?: string | undefined;
54
+ readonly accessor: string;
55
+ readonly sortKey?: string | undefined;
56
56
  }) => any;
57
57
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
58
58
  "onUpdate:modelValue"?: ((value: {
@@ -92,9 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
92
92
  readonly readonly?: string | undefined;
93
93
  readonly request: string;
94
94
  readonly grow?: boolean | undefined;
95
- readonly accessor: string;
96
- readonly options: string;
97
95
  readonly enableSorting?: boolean | undefined;
96
+ readonly options: string;
98
97
  readonly optionValue: string;
99
98
  readonly optionLabel: readonly [{
100
99
  readonly locale: "zh";
@@ -103,8 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
102
  readonly locale: "en" | "ja" | "ko";
104
103
  readonly message: string;
105
104
  }[]];
106
- readonly sortKey?: string | undefined;
107
105
  readonly successMessage?: string | undefined;
106
+ readonly accessor: string;
107
+ readonly sortKey?: string | undefined;
108
108
  }) => any) | undefined;
109
109
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
110
110
  declare const _default: typeof __VLS_export;
@@ -63,10 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
63
63
  }[]] | undefined;
64
64
  readonly readonly?: string | undefined;
65
65
  readonly grow?: boolean | undefined;
66
- readonly accessor: string;
67
66
  readonly enableSorting?: boolean | undefined;
68
- readonly sortKey?: string | undefined;
69
67
  readonly successMessage?: string | undefined;
68
+ readonly accessor: string;
69
+ readonly sortKey?: string | undefined;
70
70
  }) => any;
71
71
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
72
72
  "onUpdate:modelValue"?: ((value: {
@@ -129,10 +129,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
129
129
  }[]] | undefined;
130
130
  readonly readonly?: string | undefined;
131
131
  readonly grow?: boolean | undefined;
132
- readonly accessor: string;
133
132
  readonly enableSorting?: boolean | undefined;
134
- readonly sortKey?: string | undefined;
135
133
  readonly successMessage?: string | undefined;
134
+ readonly accessor: string;
135
+ readonly sortKey?: string | undefined;
136
136
  }) => any) | undefined;
137
137
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
138
138
  declare const _default: typeof __VLS_export;
@@ -63,10 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
63
63
  }[]] | undefined;
64
64
  readonly readonly?: string | undefined;
65
65
  readonly grow?: boolean | undefined;
66
- readonly accessor: string;
67
66
  readonly enableSorting?: boolean | undefined;
68
- readonly sortKey?: string | undefined;
69
67
  readonly successMessage?: string | undefined;
68
+ readonly accessor: string;
69
+ readonly sortKey?: string | undefined;
70
70
  }) => any;
71
71
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
72
72
  "onUpdate:modelValue"?: ((value: {
@@ -129,10 +129,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
129
129
  }[]] | undefined;
130
130
  readonly readonly?: string | undefined;
131
131
  readonly grow?: boolean | undefined;
132
- readonly accessor: string;
133
132
  readonly enableSorting?: boolean | undefined;
134
- readonly sortKey?: string | undefined;
135
133
  readonly successMessage?: string | undefined;
134
+ readonly accessor: string;
135
+ readonly sortKey?: string | undefined;
136
136
  }) => any) | undefined;
137
137
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
138
138
  declare const _default: typeof __VLS_export;
@@ -40,9 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
40
40
  readonly readonly?: string | undefined;
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
- readonly accessor: string;
44
- readonly options: string;
45
43
  readonly enableSorting?: boolean | undefined;
44
+ readonly options: string;
46
45
  readonly optionValue: string;
47
46
  readonly optionLabel: readonly [{
48
47
  readonly locale: "zh";
@@ -51,8 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
51
50
  readonly locale: "en" | "ja" | "ko";
52
51
  readonly message: string;
53
52
  }[]];
54
- readonly sortKey?: string | undefined;
55
53
  readonly successMessage?: string | undefined;
54
+ readonly accessor: string;
55
+ readonly sortKey?: string | undefined;
56
56
  }) => any;
57
57
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
58
58
  "onUpdate:modelValue"?: ((value: {
@@ -92,9 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
92
92
  readonly readonly?: string | undefined;
93
93
  readonly request: string;
94
94
  readonly grow?: boolean | undefined;
95
- readonly accessor: string;
96
- readonly options: string;
97
95
  readonly enableSorting?: boolean | undefined;
96
+ readonly options: string;
98
97
  readonly optionValue: string;
99
98
  readonly optionLabel: readonly [{
100
99
  readonly locale: "zh";
@@ -103,8 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
102
  readonly locale: "en" | "ja" | "ko";
104
103
  readonly message: string;
105
104
  }[]];
106
- readonly sortKey?: string | undefined;
107
105
  readonly successMessage?: string | undefined;
106
+ readonly accessor: string;
107
+ readonly sortKey?: string | undefined;
108
108
  }) => any) | undefined;
109
109
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
110
110
  declare const _default: typeof __VLS_export;
@@ -9,6 +9,7 @@ import {
9
9
  InputGroup,
10
10
  InputGroupAddon,
11
11
  InputGroupButton,
12
+ InputGroupInput,
12
13
  InputGroupNumberField
13
14
  } from "../../../../ui/input-group";
14
15
  import { getStructFieldDescription, getStructFieldTitle } from "../../../utils/schema-meta";
@@ -40,9 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
40
40
  readonly readonly?: string | undefined;
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
- readonly accessor: string;
44
- readonly options: string;
45
43
  readonly enableSorting?: boolean | undefined;
44
+ readonly options: string;
46
45
  readonly optionValue: string;
47
46
  readonly optionLabel: readonly [{
48
47
  readonly locale: "zh";
@@ -51,8 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
51
50
  readonly locale: "en" | "ja" | "ko";
52
51
  readonly message: string;
53
52
  }[]];
54
- readonly sortKey?: string | undefined;
55
53
  readonly successMessage?: string | undefined;
54
+ readonly accessor: string;
55
+ readonly sortKey?: string | undefined;
56
56
  }) => any;
57
57
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
58
58
  "onUpdate:modelValue"?: ((value: {
@@ -92,9 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
92
92
  readonly readonly?: string | undefined;
93
93
  readonly request: string;
94
94
  readonly grow?: boolean | undefined;
95
- readonly accessor: string;
96
- readonly options: string;
97
95
  readonly enableSorting?: boolean | undefined;
96
+ readonly options: string;
98
97
  readonly optionValue: string;
99
98
  readonly optionLabel: readonly [{
100
99
  readonly locale: "zh";
@@ -103,8 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
102
  readonly locale: "en" | "ja" | "ko";
104
103
  readonly message: string;
105
104
  }[]];
106
- readonly sortKey?: string | undefined;
107
105
  readonly successMessage?: string | undefined;
106
+ readonly accessor: string;
107
+ readonly sortKey?: string | undefined;
108
108
  }) => any) | undefined;
109
109
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
110
110
  declare const _default: typeof __VLS_export;