@shwfed/config 2.12.7 → 2.12.9

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 (68) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +68 -68
  3. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +68 -68
  4. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +68 -68
  5. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +68 -68
  6. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +34 -34
  7. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +6 -6
  8. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +6 -6
  9. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +8 -8
  10. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +8 -8
  11. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +2 -2
  12. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +2 -2
  13. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +6 -6
  14. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +6 -6
  15. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/config.d.vue.ts +15 -0
  16. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/config.vue +47 -0
  17. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/config.vue.d.ts +15 -0
  18. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/schema.d.ts +12 -0
  19. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/schema.js +28 -0
  20. package/dist/runtime/components/operations/utils/resolve.d.ts +7 -1
  21. package/dist/runtime/components/operations/utils/resolve.js +14 -6
  22. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -2
  23. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -2
  24. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -2
  25. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -2
  26. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +2 -2
  27. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -2
  28. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -2
  29. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
  30. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
  31. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
  32. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
  33. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
  34. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
  35. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
  36. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  37. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  38. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  39. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  40. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  41. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  42. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
  43. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
  44. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  45. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  46. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  47. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  48. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  49. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  50. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
  51. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
  52. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  53. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  54. package/dist/runtime/components/table/config.vue +93 -4
  55. package/dist/runtime/components/table/index.vue +207 -168
  56. package/dist/runtime/components/table/schema.d.ts +70 -69
  57. package/dist/runtime/components/table/schema.js +13 -1
  58. package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +1 -1
  59. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +1 -1
  60. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +1 -1
  61. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +1 -1
  62. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +1 -1
  63. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +1 -1
  64. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +2 -2
  65. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +2 -2
  66. package/dist/runtime/share/clipboard.d.ts +1 -1
  67. package/dist/runtime/share/clipboard.js +1 -1
  68. package/package.json +1 -1
@@ -47,40 +47,6 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
47
47
  readonly message: string;
48
48
  }[]] | undefined;
49
49
  }[];
50
- readonly query?: {
51
- readonly style?: string | undefined;
52
- readonly id?: string | undefined;
53
- readonly initial?: {
54
- readonly data: string;
55
- readonly request?: string | undefined;
56
- } | undefined;
57
- readonly displayName?: string | undefined;
58
- readonly kind: "shwfed.component.form";
59
- readonly fields: readonly any[];
60
- readonly layouts: readonly {
61
- readonly name: string;
62
- readonly layout: {
63
- readonly style?: string | undefined;
64
- readonly columns: number;
65
- readonly gap?: number | undefined;
66
- readonly rows?: number | undefined;
67
- readonly placements: {
68
- readonly [x: string]: {
69
- readonly area: readonly [readonly [number, number], readonly [number, number]];
70
- readonly v?: "stretch" | "center" | "end" | "start" | undefined;
71
- readonly h?: "stretch" | "center" | "end" | "start" | undefined;
72
- };
73
- };
74
- };
75
- readonly media?: string | undefined;
76
- }[];
77
- readonly readonly?: string | undefined;
78
- } | undefined;
79
- readonly dataSource?: {
80
- readonly data: string;
81
- readonly total?: string | undefined;
82
- readonly request?: string | undefined;
83
- } | undefined;
84
50
  readonly actions?: {
85
51
  readonly size: "default" | "sm" | "xs";
86
52
  readonly style?: string | undefined;
@@ -148,6 +114,40 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
148
114
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
149
115
  }[];
150
116
  } | undefined;
117
+ readonly query?: {
118
+ readonly style?: string | undefined;
119
+ readonly id?: string | undefined;
120
+ readonly initial?: {
121
+ readonly data: string;
122
+ readonly request?: string | undefined;
123
+ } | undefined;
124
+ readonly displayName?: string | undefined;
125
+ readonly kind: "shwfed.component.form";
126
+ readonly fields: readonly any[];
127
+ readonly layouts: readonly {
128
+ readonly name: string;
129
+ readonly layout: {
130
+ readonly style?: string | undefined;
131
+ readonly columns: number;
132
+ readonly gap?: number | undefined;
133
+ readonly rows?: number | undefined;
134
+ readonly placements: {
135
+ readonly [x: string]: {
136
+ readonly area: readonly [readonly [number, number], readonly [number, number]];
137
+ readonly v?: "stretch" | "center" | "end" | "start" | undefined;
138
+ readonly h?: "stretch" | "center" | "end" | "start" | undefined;
139
+ };
140
+ };
141
+ };
142
+ readonly media?: string | undefined;
143
+ }[];
144
+ readonly readonly?: string | undefined;
145
+ } | undefined;
146
+ readonly dataSource?: {
147
+ readonly data: string;
148
+ readonly total?: string | undefined;
149
+ readonly request?: string | undefined;
150
+ } | undefined;
151
151
  readonly bottomActions?: {
152
152
  readonly size: "default" | "sm" | "xs";
153
153
  readonly style?: string | undefined;
@@ -33,8 +33,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
33
33
  readonly expression: string;
34
34
  } | undefined;
35
35
  readonly numberOfMonths?: number | undefined;
36
- readonly rangeSeparatorIcon?: string | undefined;
37
36
  readonly format?: string | undefined;
37
+ readonly valueFormat?: string | undefined;
38
+ readonly disabledDate?: string | undefined;
39
+ readonly rangeSeparatorIcon?: string | undefined;
38
40
  readonly startPlaceholder?: readonly [{
39
41
  readonly locale: "zh";
40
42
  readonly message: string;
@@ -49,8 +51,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
49
51
  readonly locale: "en" | "ja" | "ko";
50
52
  readonly message: string;
51
53
  }[]] | undefined;
52
- readonly valueFormat?: string | undefined;
53
- readonly disabledDate?: string | undefined;
54
54
  readonly validations?: readonly {
55
55
  readonly message: readonly [{
56
56
  readonly locale: "zh";
@@ -106,8 +106,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
106
106
  readonly expression: string;
107
107
  } | undefined;
108
108
  readonly numberOfMonths?: number | undefined;
109
- readonly rangeSeparatorIcon?: string | undefined;
110
109
  readonly format?: string | undefined;
110
+ readonly valueFormat?: string | undefined;
111
+ readonly disabledDate?: string | undefined;
112
+ readonly rangeSeparatorIcon?: string | undefined;
111
113
  readonly startPlaceholder?: readonly [{
112
114
  readonly locale: "zh";
113
115
  readonly message: string;
@@ -122,8 +124,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
122
124
  readonly locale: "en" | "ja" | "ko";
123
125
  readonly message: string;
124
126
  }[]] | undefined;
125
- readonly valueFormat?: string | undefined;
126
- readonly disabledDate?: string | undefined;
127
127
  readonly validations?: readonly {
128
128
  readonly message: readonly [{
129
129
  readonly locale: "zh";
@@ -33,8 +33,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
33
33
  readonly expression: string;
34
34
  } | undefined;
35
35
  readonly numberOfMonths?: number | undefined;
36
- readonly rangeSeparatorIcon?: string | undefined;
37
36
  readonly format?: string | undefined;
37
+ readonly valueFormat?: string | undefined;
38
+ readonly disabledDate?: string | undefined;
39
+ readonly rangeSeparatorIcon?: string | undefined;
38
40
  readonly startPlaceholder?: readonly [{
39
41
  readonly locale: "zh";
40
42
  readonly message: string;
@@ -49,8 +51,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
49
51
  readonly locale: "en" | "ja" | "ko";
50
52
  readonly message: string;
51
53
  }[]] | undefined;
52
- readonly valueFormat?: string | undefined;
53
- readonly disabledDate?: string | undefined;
54
54
  readonly validations?: readonly {
55
55
  readonly message: readonly [{
56
56
  readonly locale: "zh";
@@ -106,8 +106,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
106
106
  readonly expression: string;
107
107
  } | undefined;
108
108
  readonly numberOfMonths?: number | undefined;
109
- readonly rangeSeparatorIcon?: string | undefined;
110
109
  readonly format?: string | undefined;
110
+ readonly valueFormat?: string | undefined;
111
+ readonly disabledDate?: string | undefined;
112
+ readonly rangeSeparatorIcon?: string | undefined;
111
113
  readonly startPlaceholder?: readonly [{
112
114
  readonly locale: "zh";
113
115
  readonly message: string;
@@ -122,8 +124,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
122
124
  readonly locale: "en" | "ja" | "ko";
123
125
  readonly message: string;
124
126
  }[]] | undefined;
125
- readonly valueFormat?: string | undefined;
126
- readonly disabledDate?: string | undefined;
127
127
  readonly validations?: readonly {
128
128
  readonly message: readonly [{
129
129
  readonly locale: "zh";
@@ -34,8 +34,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
34
34
  } | undefined;
35
35
  readonly numberOfMonths?: number | undefined;
36
36
  readonly hourCycle?: 12 | 24 | undefined;
37
- readonly rangeSeparatorIcon?: string | undefined;
38
37
  readonly format?: string | undefined;
38
+ readonly valueFormat?: string | undefined;
39
+ readonly disabledDate?: string | undefined;
40
+ readonly timeGranularity?: "second" | "minute" | "hour" | undefined;
41
+ readonly rangeSeparatorIcon?: string | undefined;
39
42
  readonly startPlaceholder?: readonly [{
40
43
  readonly locale: "zh";
41
44
  readonly message: string;
@@ -50,9 +53,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
53
  readonly locale: "en" | "ja" | "ko";
51
54
  readonly message: string;
52
55
  }[]] | undefined;
53
- readonly valueFormat?: string | undefined;
54
- readonly disabledDate?: string | undefined;
55
- readonly timeGranularity?: "second" | "minute" | "hour" | undefined;
56
56
  readonly validations?: readonly {
57
57
  readonly message: readonly [{
58
58
  readonly locale: "zh";
@@ -109,8 +109,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
109
109
  } | undefined;
110
110
  readonly numberOfMonths?: number | undefined;
111
111
  readonly hourCycle?: 12 | 24 | undefined;
112
- readonly rangeSeparatorIcon?: string | undefined;
113
112
  readonly format?: string | undefined;
113
+ readonly valueFormat?: string | undefined;
114
+ readonly disabledDate?: string | undefined;
115
+ readonly timeGranularity?: "second" | "minute" | "hour" | undefined;
116
+ readonly rangeSeparatorIcon?: string | undefined;
114
117
  readonly startPlaceholder?: readonly [{
115
118
  readonly locale: "zh";
116
119
  readonly message: string;
@@ -125,9 +128,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
125
128
  readonly locale: "en" | "ja" | "ko";
126
129
  readonly message: string;
127
130
  }[]] | undefined;
128
- readonly valueFormat?: string | undefined;
129
- readonly disabledDate?: string | undefined;
130
- readonly timeGranularity?: "second" | "minute" | "hour" | undefined;
131
131
  readonly validations?: readonly {
132
132
  readonly message: readonly [{
133
133
  readonly locale: "zh";
@@ -34,8 +34,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
34
34
  } | undefined;
35
35
  readonly numberOfMonths?: number | undefined;
36
36
  readonly hourCycle?: 12 | 24 | undefined;
37
- readonly rangeSeparatorIcon?: string | undefined;
38
37
  readonly format?: string | undefined;
38
+ readonly valueFormat?: string | undefined;
39
+ readonly disabledDate?: string | undefined;
40
+ readonly timeGranularity?: "second" | "minute" | "hour" | undefined;
41
+ readonly rangeSeparatorIcon?: string | undefined;
39
42
  readonly startPlaceholder?: readonly [{
40
43
  readonly locale: "zh";
41
44
  readonly message: string;
@@ -50,9 +53,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
53
  readonly locale: "en" | "ja" | "ko";
51
54
  readonly message: string;
52
55
  }[]] | undefined;
53
- readonly valueFormat?: string | undefined;
54
- readonly disabledDate?: string | undefined;
55
- readonly timeGranularity?: "second" | "minute" | "hour" | undefined;
56
56
  readonly validations?: readonly {
57
57
  readonly message: readonly [{
58
58
  readonly locale: "zh";
@@ -109,8 +109,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
109
109
  } | undefined;
110
110
  readonly numberOfMonths?: number | undefined;
111
111
  readonly hourCycle?: 12 | 24 | undefined;
112
- readonly rangeSeparatorIcon?: string | undefined;
113
112
  readonly format?: string | undefined;
113
+ readonly valueFormat?: string | undefined;
114
+ readonly disabledDate?: string | undefined;
115
+ readonly timeGranularity?: "second" | "minute" | "hour" | undefined;
116
+ readonly rangeSeparatorIcon?: string | undefined;
114
117
  readonly startPlaceholder?: readonly [{
115
118
  readonly locale: "zh";
116
119
  readonly message: string;
@@ -125,9 +128,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
125
128
  readonly locale: "en" | "ja" | "ko";
126
129
  readonly message: string;
127
130
  }[]] | undefined;
128
- readonly valueFormat?: string | undefined;
129
- readonly disabledDate?: string | undefined;
130
- readonly timeGranularity?: "second" | "minute" | "hour" | undefined;
131
131
  readonly validations?: readonly {
132
132
  readonly message: readonly [{
133
133
  readonly locale: "zh";
@@ -33,9 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
33
33
  readonly expression: string;
34
34
  } | undefined;
35
35
  readonly hourCycle?: 12 | 24 | undefined;
36
- readonly rangeSeparatorIcon?: string | undefined;
37
36
  readonly valueFormat?: string | undefined;
38
37
  readonly timeGranularity?: "second" | "minute" | "hour" | undefined;
38
+ readonly rangeSeparatorIcon?: string | undefined;
39
39
  readonly validations?: readonly {
40
40
  readonly message: readonly [{
41
41
  readonly locale: "zh";
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
79
79
  readonly expression: string;
80
80
  } | undefined;
81
81
  readonly hourCycle?: 12 | 24 | undefined;
82
- readonly rangeSeparatorIcon?: string | undefined;
83
82
  readonly valueFormat?: string | undefined;
84
83
  readonly timeGranularity?: "second" | "minute" | "hour" | undefined;
84
+ readonly rangeSeparatorIcon?: string | undefined;
85
85
  readonly validations?: readonly {
86
86
  readonly message: readonly [{
87
87
  readonly locale: "zh";
@@ -33,9 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
33
33
  readonly expression: string;
34
34
  } | undefined;
35
35
  readonly hourCycle?: 12 | 24 | undefined;
36
- readonly rangeSeparatorIcon?: string | undefined;
37
36
  readonly valueFormat?: string | undefined;
38
37
  readonly timeGranularity?: "second" | "minute" | "hour" | undefined;
38
+ readonly rangeSeparatorIcon?: string | undefined;
39
39
  readonly validations?: readonly {
40
40
  readonly message: readonly [{
41
41
  readonly locale: "zh";
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
79
79
  readonly expression: string;
80
80
  } | undefined;
81
81
  readonly hourCycle?: 12 | 24 | undefined;
82
- readonly rangeSeparatorIcon?: string | undefined;
83
82
  readonly valueFormat?: string | undefined;
84
83
  readonly timeGranularity?: "second" | "minute" | "hour" | undefined;
84
+ readonly rangeSeparatorIcon?: string | undefined;
85
85
  readonly validations?: readonly {
86
86
  readonly message: readonly [{
87
87
  readonly locale: "zh";
@@ -32,8 +32,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
32
32
  readonly mode: "formula" | "prefill";
33
33
  readonly expression: string;
34
34
  } | undefined;
35
- readonly rangeSeparatorIcon?: string | undefined;
36
35
  readonly format?: string | undefined;
36
+ readonly valueFormat?: string | undefined;
37
+ readonly disabledDate?: string | undefined;
38
+ readonly rangeSeparatorIcon?: string | undefined;
37
39
  readonly startPlaceholder?: readonly [{
38
40
  readonly locale: "zh";
39
41
  readonly message: string;
@@ -48,8 +50,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
48
50
  readonly locale: "en" | "ja" | "ko";
49
51
  readonly message: string;
50
52
  }[]] | undefined;
51
- readonly valueFormat?: string | undefined;
52
- readonly disabledDate?: string | undefined;
53
53
  readonly validations?: readonly {
54
54
  readonly message: readonly [{
55
55
  readonly locale: "zh";
@@ -104,8 +104,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
104
104
  readonly mode: "formula" | "prefill";
105
105
  readonly expression: string;
106
106
  } | undefined;
107
- readonly rangeSeparatorIcon?: string | undefined;
108
107
  readonly format?: string | undefined;
108
+ readonly valueFormat?: string | undefined;
109
+ readonly disabledDate?: string | undefined;
110
+ readonly rangeSeparatorIcon?: string | undefined;
109
111
  readonly startPlaceholder?: readonly [{
110
112
  readonly locale: "zh";
111
113
  readonly message: string;
@@ -120,8 +122,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
120
122
  readonly locale: "en" | "ja" | "ko";
121
123
  readonly message: string;
122
124
  }[]] | undefined;
123
- readonly valueFormat?: string | undefined;
124
- readonly disabledDate?: string | undefined;
125
125
  readonly validations?: readonly {
126
126
  readonly message: readonly [{
127
127
  readonly locale: "zh";
@@ -32,8 +32,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
32
32
  readonly mode: "formula" | "prefill";
33
33
  readonly expression: string;
34
34
  } | undefined;
35
- readonly rangeSeparatorIcon?: string | undefined;
36
35
  readonly format?: string | undefined;
36
+ readonly valueFormat?: string | undefined;
37
+ readonly disabledDate?: string | undefined;
38
+ readonly rangeSeparatorIcon?: string | undefined;
37
39
  readonly startPlaceholder?: readonly [{
38
40
  readonly locale: "zh";
39
41
  readonly message: string;
@@ -48,8 +50,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
48
50
  readonly locale: "en" | "ja" | "ko";
49
51
  readonly message: string;
50
52
  }[]] | undefined;
51
- readonly valueFormat?: string | undefined;
52
- readonly disabledDate?: string | undefined;
53
53
  readonly validations?: readonly {
54
54
  readonly message: readonly [{
55
55
  readonly locale: "zh";
@@ -104,8 +104,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
104
104
  readonly mode: "formula" | "prefill";
105
105
  readonly expression: string;
106
106
  } | undefined;
107
- readonly rangeSeparatorIcon?: string | undefined;
108
107
  readonly format?: string | undefined;
108
+ readonly valueFormat?: string | undefined;
109
+ readonly disabledDate?: string | undefined;
110
+ readonly rangeSeparatorIcon?: string | undefined;
109
111
  readonly startPlaceholder?: readonly [{
110
112
  readonly locale: "zh";
111
113
  readonly message: string;
@@ -120,8 +122,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
120
122
  readonly locale: "en" | "ja" | "ko";
121
123
  readonly message: string;
122
124
  }[]] | undefined;
123
- readonly valueFormat?: string | undefined;
124
- readonly disabledDate?: string | undefined;
125
125
  readonly validations?: readonly {
126
126
  readonly message: readonly [{
127
127
  readonly locale: "zh";
@@ -0,0 +1,15 @@
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 newRow?: string | undefined;
8
+ }) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: {
11
+ readonly newRow?: string | undefined;
12
+ }) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,47 @@
1
+ <script setup>
2
+ import { ExpressionEditor } from "../../../ui/expression-editor";
3
+ import { Field, FieldGroup, FieldLabel } from "../../../ui/field";
4
+ import { Markdown } from "../../../ui/markdown";
5
+ import { getStructFieldDescription, getStructFieldTitle } from "../../../../share/schema-meta";
6
+ import { schema } from "./schema";
7
+ defineOptions({ name: "ShwfedTableAddRowOperationConfig" });
8
+ const value = defineModel({ type: null, ...{ required: true } });
9
+ const opSchema = schema(() => {
10
+ });
11
+ const fieldTitle = (f) => getStructFieldTitle(opSchema, f) ?? f;
12
+ const fieldDescription = (f) => getStructFieldDescription(opSchema, f);
13
+ function patchNewRow(v) {
14
+ const next = { ...value.value };
15
+ if (v.length === 0) Reflect.deleteProperty(next, "newRow");
16
+ else next.newRow = v;
17
+ value.value = next;
18
+ }
19
+ </script>
20
+
21
+ <template>
22
+ <FieldGroup>
23
+ <Field orientation="vertical">
24
+ <FieldLabel class="text-xs text-zinc-500">
25
+ <template
26
+ v-if="fieldDescription('newRow')"
27
+ #tooltip
28
+ >
29
+ <Markdown
30
+ :source="fieldDescription('newRow')"
31
+ block
32
+ class="prose prose-sm prose-zinc"
33
+ />
34
+ </template>
35
+ {{ fieldTitle("newRow") }}
36
+ </FieldLabel>
37
+ <ExpressionEditor
38
+ :model-value="value.newRow ?? ''"
39
+ multiline
40
+ placeholder="例:{'status': 'active', 'qty': 1}"
41
+ result-type="map"
42
+ class="min-h-16"
43
+ @update:model-value="(v) => patchNewRow(v)"
44
+ />
45
+ </Field>
46
+ </FieldGroup>
47
+ </template>
@@ -0,0 +1,15 @@
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 newRow?: string | undefined;
8
+ }) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: {
11
+ readonly newRow?: string | undefined;
12
+ }) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { Schema } from 'effect';
2
+ import type { Environment } from '../../../../vendor/cel-js/lib/index.js';
3
+ export declare const type: "com.shwfed.operation.table.add-row";
4
+ export declare const compatibilityDate: "2026-07-06";
5
+ export declare const metadata: {
6
+ readonly name: "新增一行";
7
+ readonly icon: "fluent:add-20-regular";
8
+ };
9
+ export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
10
+ newRow: Schema.optional<Schema.Schema<string, string, never>>;
11
+ }>;
12
+ export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
@@ -0,0 +1,28 @@
1
+ import { Schema } from "effect";
2
+ import { Expression } from "../../../../share/expression.js";
3
+ import { md } from "../../../../share/markdown.js";
4
+ export const type = "com.shwfed.operation.table.add-row";
5
+ export const compatibilityDate = "2026-07-06";
6
+ export const metadata = {
7
+ name: "\u65B0\u589E\u4E00\u884C",
8
+ icon: "fluent:add-20-regular"
9
+ };
10
+ export function schema(configure) {
11
+ const CelRow = Expression({ configure, resultType: "map" });
12
+ return Schema.Struct({
13
+ newRow: Schema.optional(CelRow.annotations({
14
+ title: "\u9ED8\u8BA4\u503C",
15
+ description: md`
16
+ 点击时求值,结果作为新行的初始字段值(须为对象/映射,如
17
+ \`{'status': 'active', 'qty': 1}\`)。可引用点击处作用域的变量
18
+ (例如行内操作按钮的 \`row\`)。留空则新增一个空行。
19
+ `
20
+ }))
21
+ }).annotations({
22
+ title: "TableAddRowOperation",
23
+ description: md`
24
+ 向目标表格追加一行。可选「默认值」表达式为新行提供初始字段值;
25
+ 留空则追加一个空行(与无参数时行为一致)。
26
+ `
27
+ });
28
+ }
@@ -44,7 +44,13 @@ export type OperationEntry = Readonly<{
44
44
  schema: SchemaFactory;
45
45
  defaults?: () => Record<string, unknown>;
46
46
  config: Component;
47
- handler: OperationHandler;
47
+ /**
48
+ * The generic behaviour, when the op ships a `runtime.ts`. Absent for
49
+ * host-coupled ops (no `runtime.ts`): those act on a specific host's private
50
+ * state, so the host hand-wires the handler into its own `provideEventTarget`
51
+ * rather than exposing it through `operationHandlers`.
52
+ */
53
+ handler?: OperationHandler;
48
54
  }>;
49
55
  export declare const OPERATIONS: ReadonlyArray<OperationEntry>;
50
56
  export declare function findOperation(type: string, compatibilityDate: string): OperationEntry | undefined;
@@ -18,7 +18,7 @@ const configModules = Object.fromEntries(
18
18
  ])
19
19
  );
20
20
  const PATH_RE = /\/([^/]+)\/([^/]+)\/schema\.(?:ts|js)$/;
21
- function findSibling(map, date, type, file) {
21
+ function findSiblingOptional(map, date, type, file) {
22
22
  const candidates = file.endsWith(".ts") ? [file, `${file.slice(0, -3)}.js`] : [file];
23
23
  for (const candidate of candidates) {
24
24
  const suffix = `/${date}/${type}/${candidate}`;
@@ -26,7 +26,14 @@ function findSibling(map, date, type, file) {
26
26
  if (key.endsWith(suffix)) return value;
27
27
  }
28
28
  }
29
- throw new Error(`[shwfed-operations] missing ${file} for ${type}@${date}`);
29
+ return void 0;
30
+ }
31
+ function findSibling(map, date, type, file) {
32
+ const found = findSiblingOptional(map, date, type, file);
33
+ if (found === void 0) {
34
+ throw new Error(`[shwfed-operations] missing ${file} for ${type}@${date}`);
35
+ }
36
+ return found;
30
37
  }
31
38
  let cached = null;
32
39
  function compute() {
@@ -43,7 +50,7 @@ function compute() {
43
50
  if (mod.compatibilityDate !== date) {
44
51
  throw new Error(`[shwfed-operations] compatibilityDate "${mod.compatibilityDate}" does not match folder "${date}"`);
45
52
  }
46
- const runtime = findSibling(runtimeModules, date, type, "runtime.ts");
53
+ const runtime = findSiblingOptional(runtimeModules, date, type, "runtime.ts");
47
54
  entries.push({
48
55
  type: mod.type,
49
56
  compatibilityDate: mod.compatibilityDate,
@@ -51,7 +58,7 @@ function compute() {
51
58
  schema: mod.schema,
52
59
  defaults: mod.defaults,
53
60
  config: findSibling(configModules, date, type, "config.vue"),
54
- handler: runtime.handler
61
+ handler: runtime?.handler
55
62
  });
56
63
  }
57
64
  cached = entries;
@@ -69,8 +76,9 @@ export function operationHandlers(exposed, ctx) {
69
76
  const handlers = {};
70
77
  for (const { type, compatibilityDate } of exposed) {
71
78
  const entry = findOperation(type, compatibilityDate);
72
- if (!entry) continue;
73
- handlers[type] = (params, cel, step) => entry.handler(params, { ...ctx, ...cel && { cel }, ...step && { step } });
79
+ if (!entry?.handler) continue;
80
+ const handler = entry.handler;
81
+ handlers[type] = (params, cel, step) => handler(params, { ...ctx, ...cel && { cel }, ...step && { step } });
74
82
  }
75
83
  return handlers;
76
84
  }
@@ -53,9 +53,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
53
53
  readonly locale: "en" | "ja" | "ko";
54
54
  readonly message: string;
55
55
  }[]];
56
- readonly successMessage?: string | undefined;
57
56
  readonly accessor?: string | undefined;
58
57
  readonly sortKey?: string | undefined;
58
+ readonly successMessage?: string | undefined;
59
59
  }) => any;
60
60
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
61
61
  "onUpdate:modelValue"?: ((value: {
@@ -108,9 +108,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  readonly locale: "en" | "ja" | "ko";
109
109
  readonly message: string;
110
110
  }[]];
111
- readonly successMessage?: string | undefined;
112
111
  readonly accessor?: string | undefined;
113
112
  readonly sortKey?: string | undefined;
113
+ readonly successMessage?: string | undefined;
114
114
  }) => any) | undefined;
115
115
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
116
116
  declare const _default: typeof __VLS_export;
@@ -53,9 +53,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
53
53
  readonly locale: "en" | "ja" | "ko";
54
54
  readonly message: string;
55
55
  }[]];
56
- readonly successMessage?: string | undefined;
57
56
  readonly accessor?: string | undefined;
58
57
  readonly sortKey?: string | undefined;
58
+ readonly successMessage?: string | undefined;
59
59
  }) => any;
60
60
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
61
61
  "onUpdate:modelValue"?: ((value: {
@@ -108,9 +108,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  readonly locale: "en" | "ja" | "ko";
109
109
  readonly message: string;
110
110
  }[]];
111
- readonly successMessage?: string | undefined;
112
111
  readonly accessor?: string | undefined;
113
112
  readonly sortKey?: string | undefined;
113
+ readonly successMessage?: string | undefined;
114
114
  }) => any) | undefined;
115
115
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
116
116
  declare const _default: typeof __VLS_export;
@@ -67,9 +67,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
67
  }[]] | undefined;
68
68
  readonly readonly?: string | undefined;
69
69
  readonly enableSorting?: boolean | undefined;
70
- readonly successMessage?: string | undefined;
71
70
  readonly accessor?: string | undefined;
72
71
  readonly sortKey?: string | undefined;
72
+ readonly successMessage?: string | undefined;
73
73
  }) => any;
74
74
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
75
75
  "onUpdate:modelValue"?: ((value: {
@@ -136,9 +136,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
136
136
  }[]] | undefined;
137
137
  readonly readonly?: string | undefined;
138
138
  readonly enableSorting?: boolean | undefined;
139
- readonly successMessage?: string | undefined;
140
139
  readonly accessor?: string | undefined;
141
140
  readonly sortKey?: string | undefined;
141
+ readonly successMessage?: string | undefined;
142
142
  }) => any) | undefined;
143
143
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
144
144
  declare const _default: typeof __VLS_export;