@shwfed/config 2.9.4 → 2.9.6

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 (153) hide show
  1. package/dist/mcp.mjs +558 -102
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +1 -0
  4. package/dist/preview/assets/FieldGroup.vue_vue_type_script_setup_true_lang-B-Cwm94m.js +1 -0
  5. package/dist/preview/assets/badge-nn3uvUrR.js +1 -0
  6. package/dist/preview/assets/config-BNQXbhtM.js +1 -0
  7. package/dist/preview/assets/config-Bg95dd9K.js +1 -0
  8. package/dist/preview/assets/config-C6LousLT.js +1 -0
  9. package/dist/preview/assets/config-CGhV-PCy.js +1 -0
  10. package/dist/preview/assets/config-CUkEZF8G.js +1 -0
  11. package/dist/preview/assets/config-DO77XC7j.js +1 -0
  12. package/dist/preview/assets/config-DbjXscRV.js +1 -0
  13. package/dist/preview/assets/config-DiD-8mMw.js +1 -0
  14. package/dist/preview/assets/config-Dvq_Xh7I.js +1 -0
  15. package/dist/preview/assets/config-d8ZhbBPg.js +1 -0
  16. package/dist/preview/assets/config-e8Li9jh4.js +1 -0
  17. package/dist/preview/assets/definition.vue_vue_type_script_setup_true_lang-DuO-EwWA.js +1 -0
  18. package/dist/preview/assets/{index-cyMSopN_.js → index-Bpap7h0Q.js} +217 -186
  19. package/dist/preview/assets/{index-CHkjJPVP.js → index-DZyYLnIs.js} +1 -1
  20. package/dist/preview/assets/index-jHSCIEVi.js +1 -0
  21. package/dist/preview/assets/index-vPcvbp7e.css +1 -0
  22. package/dist/preview/assets/item-BqnYkxMr.js +1 -0
  23. package/dist/preview/assets/{runtime-Dy1bI4VO.js → runtime-BFAxoqEC.js} +1 -1
  24. package/dist/preview/assets/runtime-BntIEgRD.js +1 -0
  25. package/dist/preview/assets/{runtime-lZLYBBgn.js → runtime-Bu6BEaxq.js} +1 -1
  26. package/dist/preview/assets/runtime-CfdnDil3.js +1 -0
  27. package/dist/preview/assets/runtime-CqoGHW0U.js +1 -0
  28. package/dist/preview/assets/runtime-D6blej8e.js +1 -0
  29. package/dist/preview/assets/runtime-DEsY0ihh.js +1 -0
  30. package/dist/preview/assets/runtime-DrnADq2i.js +1 -0
  31. package/dist/preview/assets/runtime-JW4LSnRF.js +1 -0
  32. package/dist/preview/assets/runtime-U7gyBbWI.js +1 -0
  33. package/dist/preview/index.html +2 -2
  34. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.d.vue.ts +20 -0
  35. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.vue.d.ts +20 -0
  36. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.d.ts +22 -0
  37. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.js +33 -1
  38. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.d.vue.ts +20 -0
  39. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.vue.d.ts +20 -0
  40. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.d.ts +10 -0
  41. package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/config.d.vue.ts +4 -0
  42. package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/config.vue.d.ts +4 -0
  43. package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/schema.d.ts +2 -0
  44. package/dist/runtime/components/actions/buttons/2026-05-21/com.shwfed.actions.button.http.download/config.d.vue.ts +16 -0
  45. package/dist/runtime/components/actions/buttons/2026-05-21/com.shwfed.actions.button.http.download/config.vue.d.ts +16 -0
  46. package/dist/runtime/components/actions/buttons/2026-05-21/com.shwfed.actions.button.http.download/schema.d.ts +8 -0
  47. package/dist/runtime/components/actions/buttons/2026-05-24/com.shwfed.actions.button.state.write/config.d.vue.ts +4 -0
  48. package/dist/runtime/components/actions/buttons/2026-05-24/com.shwfed.actions.button.state.write/config.vue.d.ts +4 -0
  49. package/dist/runtime/components/actions/buttons/2026-05-24/com.shwfed.actions.button.state.write/schema.d.ts +2 -0
  50. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/config.d.vue.ts +51 -0
  51. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/config.vue +201 -0
  52. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/config.vue.d.ts +51 -0
  53. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/runtime.d.vue.ts +8 -0
  54. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/runtime.vue +37 -0
  55. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/runtime.vue.d.ts +8 -0
  56. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.d.ts +30 -0
  57. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.js +87 -0
  58. package/dist/runtime/components/actions/components/triggers-field.d.vue.ts +4 -0
  59. package/dist/runtime/components/actions/components/triggers-field.vue +65 -7
  60. package/dist/runtime/components/actions/components/triggers-field.vue.d.ts +4 -0
  61. package/dist/runtime/components/actions/config.vue +68 -1
  62. package/dist/runtime/components/actions/utils/resolve.d.ts +85 -2
  63. package/dist/runtime/components/actions/utils/resolve.js +122 -21
  64. package/dist/runtime/components/app.vue +59 -4
  65. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +2 -2
  66. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +2 -2
  67. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +2 -2
  68. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +2 -2
  69. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +1 -1
  70. package/dist/runtime/components/config/index.vue +9 -2
  71. package/dist/runtime/components/config/schema.d.ts +6 -10
  72. package/dist/runtime/components/config/schema.js +12 -2
  73. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +2 -2
  74. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +2 -2
  75. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +2 -2
  76. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +2 -2
  77. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.d.vue.ts +2 -2
  78. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue.d.ts +2 -2
  79. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +1 -1
  80. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/config.d.vue.ts +31 -0
  81. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/config.vue +89 -0
  82. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/config.vue.d.ts +31 -0
  83. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/runtime.d.ts +2 -0
  84. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/runtime.js +14 -0
  85. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.d.ts +21 -0
  86. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.js +36 -0
  87. package/dist/runtime/components/operations/utils/resolve.d.ts +48 -0
  88. package/dist/runtime/components/operations/utils/resolve.js +76 -0
  89. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +2 -0
  90. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +2 -0
  91. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +4 -0
  92. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +4 -0
  93. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +2 -0
  94. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +4 -0
  95. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +4 -0
  96. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.d.ts +2 -0
  97. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +4 -0
  98. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +4 -0
  99. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +2 -0
  100. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +4 -0
  101. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +4 -0
  102. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.d.ts +2 -0
  103. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +4 -0
  104. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +4 -0
  105. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +2 -0
  106. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +4 -0
  107. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +4 -0
  108. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +2 -0
  109. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +4 -0
  110. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +4 -0
  111. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +4 -0
  112. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +4 -0
  113. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +4 -0
  114. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +4 -0
  115. package/dist/runtime/components/table/schema.d.ts +2 -2
  116. package/dist/runtime/components/ui/progress/Progress.d.vue.ts +11 -0
  117. package/dist/runtime/components/ui/progress/Progress.vue +32 -0
  118. package/dist/runtime/components/ui/progress/Progress.vue.d.ts +11 -0
  119. package/dist/runtime/components/ui/progress/index.d.ts +1 -0
  120. package/dist/runtime/components/ui/progress/index.js +1 -0
  121. package/dist/runtime/composables/useOverlay.d.ts +35 -0
  122. package/dist/runtime/composables/useOverlay.js +52 -0
  123. package/dist/runtime/share/event-bus.d.ts +24 -2
  124. package/dist/runtime/share/event-bus.js +21 -3
  125. package/dist/runtime/share/interpolate.d.ts +12 -0
  126. package/dist/runtime/share/interpolate.js +18 -0
  127. package/dist/runtime/share/page-target.d.ts +16 -0
  128. package/dist/runtime/share/page-target.js +1 -0
  129. package/dist/runtime/share/schema-meta.d.ts +5 -0
  130. package/dist/runtime/share/schema-meta.js +48 -0
  131. package/dist/runtime/style.css +1 -1
  132. package/package.json +1 -1
  133. package/dist/preview/assets/badge-Nmf0QGvo.js +0 -1
  134. package/dist/preview/assets/config-BuBQPlju.js +0 -1
  135. package/dist/preview/assets/config-CBxDLjqQ.js +0 -1
  136. package/dist/preview/assets/config-CSU0Tuu4.js +0 -1
  137. package/dist/preview/assets/config-Cnu3ZCPF.js +0 -1
  138. package/dist/preview/assets/config-CzBP2y8L.js +0 -1
  139. package/dist/preview/assets/config-nczxdERQ.js +0 -1
  140. package/dist/preview/assets/config-qCPGn6mB.js +0 -1
  141. package/dist/preview/assets/config-vHYVnzyt.js +0 -1
  142. package/dist/preview/assets/config-w2mvI_4h.js +0 -1
  143. package/dist/preview/assets/definition.vue_vue_type_script_setup_true_lang-DqE0YNVF.js +0 -1
  144. package/dist/preview/assets/index-BgvMBKzp.js +0 -1
  145. package/dist/preview/assets/index-COSjWreD.css +0 -1
  146. package/dist/preview/assets/item-DAL4Ui_l.js +0 -1
  147. package/dist/preview/assets/runtime-BcsMOkA2.js +0 -1
  148. package/dist/preview/assets/runtime-BzwoxDCd.js +0 -1
  149. package/dist/preview/assets/runtime-Cu2DKoI0.js +0 -1
  150. package/dist/preview/assets/runtime-Dp0JEFtU.js +0 -1
  151. package/dist/preview/assets/runtime-YE1oXXQN.js +0 -1
  152. package/dist/preview/assets/runtime-YRSxexBQ.js +0 -1
  153. package/dist/preview/assets/runtime-uwt0BxpS.js +0 -1
@@ -50,6 +50,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
50
  };
51
51
  }[];
52
52
  readonly triggers?: readonly {
53
+ readonly params?: unknown;
54
+ readonly compatibilityDate?: string | undefined;
53
55
  readonly target: string;
54
56
  readonly operation: string;
55
57
  }[] | undefined;
@@ -116,6 +118,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
116
118
  };
117
119
  }[];
118
120
  readonly triggers?: readonly {
121
+ readonly params?: unknown;
122
+ readonly compatibilityDate?: string | undefined;
119
123
  readonly target: string;
120
124
  readonly operation: string;
121
125
  }[] | undefined;
@@ -50,6 +50,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
50
  };
51
51
  }[];
52
52
  readonly triggers?: readonly {
53
+ readonly params?: unknown;
54
+ readonly compatibilityDate?: string | undefined;
53
55
  readonly target: string;
54
56
  readonly operation: string;
55
57
  }[] | undefined;
@@ -116,6 +118,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
116
118
  };
117
119
  }[];
118
120
  readonly triggers?: readonly {
121
+ readonly params?: unknown;
122
+ readonly compatibilityDate?: string | undefined;
119
123
  readonly target: string;
120
124
  readonly operation: string;
121
125
  }[] | undefined;
@@ -98,6 +98,8 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
98
98
  triggers: Schema.optional<Schema.Array$<Schema.Struct<{
99
99
  target: Schema.refine<string, typeof Schema.String>;
100
100
  operation: Schema.SchemaClass<string, string, never>;
101
+ compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
102
+ params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
101
103
  }>>>;
102
104
  title: Schema.TupleType<readonly [Schema.Struct<{
103
105
  locale: Schema.Literal<["zh"]>;
@@ -26,6 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
26
26
  }[]] | undefined;
27
27
  readonly compatibilityDate: "2026-05-25";
28
28
  readonly triggers?: readonly {
29
+ readonly params?: unknown;
30
+ readonly compatibilityDate?: string | undefined;
29
31
  readonly target: string;
30
32
  readonly operation: string;
31
33
  }[] | undefined;
@@ -78,6 +80,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
78
80
  }[]] | undefined;
79
81
  readonly compatibilityDate: "2026-05-25";
80
82
  readonly triggers?: readonly {
83
+ readonly params?: unknown;
84
+ readonly compatibilityDate?: string | undefined;
81
85
  readonly target: string;
82
86
  readonly operation: string;
83
87
  }[] | undefined;
@@ -26,6 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
26
26
  }[]] | undefined;
27
27
  readonly compatibilityDate: "2026-05-25";
28
28
  readonly triggers?: readonly {
29
+ readonly params?: unknown;
30
+ readonly compatibilityDate?: string | undefined;
29
31
  readonly target: string;
30
32
  readonly operation: string;
31
33
  }[] | undefined;
@@ -78,6 +80,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
78
80
  }[]] | undefined;
79
81
  readonly compatibilityDate: "2026-05-25";
80
82
  readonly triggers?: readonly {
83
+ readonly params?: unknown;
84
+ readonly compatibilityDate?: string | undefined;
81
85
  readonly target: string;
82
86
  readonly operation: string;
83
87
  }[] | undefined;
@@ -57,6 +57,8 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
57
57
  triggers: Schema.optional<Schema.Array$<Schema.Struct<{
58
58
  target: Schema.refine<string, typeof Schema.String>;
59
59
  operation: Schema.SchemaClass<string, string, never>;
60
+ compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
61
+ params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
60
62
  }>>>;
61
63
  title: Schema.TupleType<readonly [Schema.Struct<{
62
64
  locale: Schema.Literal<["zh"]>;
@@ -50,6 +50,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
50
  };
51
51
  }[];
52
52
  readonly triggers?: readonly {
53
+ readonly params?: unknown;
54
+ readonly compatibilityDate?: string | undefined;
53
55
  readonly target: string;
54
56
  readonly operation: string;
55
57
  }[] | undefined;
@@ -116,6 +118,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
116
118
  };
117
119
  }[];
118
120
  readonly triggers?: readonly {
121
+ readonly params?: unknown;
122
+ readonly compatibilityDate?: string | undefined;
119
123
  readonly target: string;
120
124
  readonly operation: string;
121
125
  }[] | undefined;
@@ -50,6 +50,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
50
  };
51
51
  }[];
52
52
  readonly triggers?: readonly {
53
+ readonly params?: unknown;
54
+ readonly compatibilityDate?: string | undefined;
53
55
  readonly target: string;
54
56
  readonly operation: string;
55
57
  }[] | undefined;
@@ -116,6 +118,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
116
118
  };
117
119
  }[];
118
120
  readonly triggers?: readonly {
121
+ readonly params?: unknown;
122
+ readonly compatibilityDate?: string | undefined;
119
123
  readonly target: string;
120
124
  readonly operation: string;
121
125
  }[] | undefined;
@@ -98,6 +98,8 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
98
98
  triggers: Schema.optional<Schema.Array$<Schema.Struct<{
99
99
  target: Schema.refine<string, typeof Schema.String>;
100
100
  operation: Schema.SchemaClass<string, string, never>;
101
+ compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
102
+ params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
101
103
  }>>>;
102
104
  title: Schema.TupleType<readonly [Schema.Struct<{
103
105
  locale: Schema.Literal<["zh"]>;
@@ -26,6 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
26
26
  }[]] | undefined;
27
27
  readonly compatibilityDate: "2026-05-26";
28
28
  readonly triggers?: readonly {
29
+ readonly params?: unknown;
30
+ readonly compatibilityDate?: string | undefined;
29
31
  readonly target: string;
30
32
  readonly operation: string;
31
33
  }[] | undefined;
@@ -107,6 +109,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
107
109
  }[]] | undefined;
108
110
  readonly compatibilityDate: "2026-05-26";
109
111
  readonly triggers?: readonly {
112
+ readonly params?: unknown;
113
+ readonly compatibilityDate?: string | undefined;
110
114
  readonly target: string;
111
115
  readonly operation: string;
112
116
  }[] | undefined;
@@ -26,6 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
26
26
  }[]] | undefined;
27
27
  readonly compatibilityDate: "2026-05-26";
28
28
  readonly triggers?: readonly {
29
+ readonly params?: unknown;
30
+ readonly compatibilityDate?: string | undefined;
29
31
  readonly target: string;
30
32
  readonly operation: string;
31
33
  }[] | undefined;
@@ -107,6 +109,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
107
109
  }[]] | undefined;
108
110
  readonly compatibilityDate: "2026-05-26";
109
111
  readonly triggers?: readonly {
112
+ readonly params?: unknown;
113
+ readonly compatibilityDate?: string | undefined;
110
114
  readonly target: string;
111
115
  readonly operation: string;
112
116
  }[] | undefined;
@@ -223,6 +223,8 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
223
223
  triggers: Schema.optional<Schema.Array$<Schema.Struct<{
224
224
  target: Schema.refine<string, typeof Schema.String>;
225
225
  operation: Schema.SchemaClass<string, string, never>;
226
+ compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
227
+ params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
226
228
  }>>>;
227
229
  title: Schema.TupleType<readonly [Schema.Struct<{
228
230
  locale: Schema.Literal<["zh"]>;
@@ -26,6 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
26
26
  }[]] | undefined;
27
27
  readonly compatibilityDate: "2026-05-26";
28
28
  readonly triggers?: readonly {
29
+ readonly params?: unknown;
30
+ readonly compatibilityDate?: string | undefined;
29
31
  readonly target: string;
30
32
  readonly operation: string;
31
33
  }[] | undefined;
@@ -107,6 +109,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
107
109
  }[]] | undefined;
108
110
  readonly compatibilityDate: "2026-05-26";
109
111
  readonly triggers?: readonly {
112
+ readonly params?: unknown;
113
+ readonly compatibilityDate?: string | undefined;
110
114
  readonly target: string;
111
115
  readonly operation: string;
112
116
  }[] | undefined;
@@ -26,6 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
26
26
  }[]] | undefined;
27
27
  readonly compatibilityDate: "2026-05-26";
28
28
  readonly triggers?: readonly {
29
+ readonly params?: unknown;
30
+ readonly compatibilityDate?: string | undefined;
29
31
  readonly target: string;
30
32
  readonly operation: string;
31
33
  }[] | undefined;
@@ -107,6 +109,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
107
109
  }[]] | undefined;
108
110
  readonly compatibilityDate: "2026-05-26";
109
111
  readonly triggers?: readonly {
112
+ readonly params?: unknown;
113
+ readonly compatibilityDate?: string | undefined;
110
114
  readonly target: string;
111
115
  readonly operation: string;
112
116
  }[] | undefined;
@@ -223,6 +223,8 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
223
223
  triggers: Schema.optional<Schema.Array$<Schema.Struct<{
224
224
  target: Schema.refine<string, typeof Schema.String>;
225
225
  operation: Schema.SchemaClass<string, string, never>;
226
+ compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
227
+ params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
226
228
  }>>>;
227
229
  title: Schema.TupleType<readonly [Schema.Struct<{
228
230
  locale: Schema.Literal<["zh"]>;
@@ -84,6 +84,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
84
84
  readonly onChange?: string | undefined;
85
85
  readonly kind: "remote";
86
86
  readonly triggers?: readonly {
87
+ readonly params?: unknown;
88
+ readonly compatibilityDate?: string | undefined;
87
89
  readonly target: string;
88
90
  readonly operation: string;
89
91
  }[] | undefined;
@@ -173,6 +175,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
173
175
  readonly onChange?: string | undefined;
174
176
  readonly kind: "remote";
175
177
  readonly triggers?: readonly {
178
+ readonly params?: unknown;
179
+ readonly compatibilityDate?: string | undefined;
176
180
  readonly target: string;
177
181
  readonly operation: string;
178
182
  }[] | undefined;
@@ -84,6 +84,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
84
84
  readonly onChange?: string | undefined;
85
85
  readonly kind: "remote";
86
86
  readonly triggers?: readonly {
87
+ readonly params?: unknown;
88
+ readonly compatibilityDate?: string | undefined;
87
89
  readonly target: string;
88
90
  readonly operation: string;
89
91
  }[] | undefined;
@@ -173,6 +175,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
173
175
  readonly onChange?: string | undefined;
174
176
  readonly kind: "remote";
175
177
  readonly triggers?: readonly {
178
+ readonly params?: unknown;
179
+ readonly compatibilityDate?: string | undefined;
176
180
  readonly target: string;
177
181
  readonly operation: string;
178
182
  }[] | undefined;
@@ -152,6 +152,8 @@ export declare function writeSchema(configure: (env: Environment) => void): Sche
152
152
  triggers: Schema.optional<Schema.Array$<Schema.Struct<{
153
153
  target: Schema.refine<string, typeof Schema.String>;
154
154
  operation: Schema.SchemaClass<string, string, never>;
155
+ compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
156
+ params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
155
157
  }>>>;
156
158
  }>]>;
157
159
  export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
@@ -267,6 +269,8 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
267
269
  triggers: Schema.optional<Schema.Array$<Schema.Struct<{
268
270
  target: Schema.refine<string, typeof Schema.String>;
269
271
  operation: Schema.SchemaClass<string, string, never>;
272
+ compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
273
+ params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
270
274
  }>>>;
271
275
  }>]>, {
272
276
  default: () => {
@@ -84,6 +84,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
84
84
  readonly onChange?: string | undefined;
85
85
  readonly kind: "remote";
86
86
  readonly triggers?: readonly {
87
+ readonly params?: unknown;
88
+ readonly compatibilityDate?: string | undefined;
87
89
  readonly target: string;
88
90
  readonly operation: string;
89
91
  }[] | undefined;
@@ -173,6 +175,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
173
175
  readonly onChange?: string | undefined;
174
176
  readonly kind: "remote";
175
177
  readonly triggers?: readonly {
178
+ readonly params?: unknown;
179
+ readonly compatibilityDate?: string | undefined;
176
180
  readonly target: string;
177
181
  readonly operation: string;
178
182
  }[] | undefined;
@@ -84,6 +84,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
84
84
  readonly onChange?: string | undefined;
85
85
  readonly kind: "remote";
86
86
  readonly triggers?: readonly {
87
+ readonly params?: unknown;
88
+ readonly compatibilityDate?: string | undefined;
87
89
  readonly target: string;
88
90
  readonly operation: string;
89
91
  }[] | undefined;
@@ -173,6 +175,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
173
175
  readonly onChange?: string | undefined;
174
176
  readonly kind: "remote";
175
177
  readonly triggers?: readonly {
178
+ readonly params?: unknown;
179
+ readonly compatibilityDate?: string | undefined;
176
180
  readonly target: string;
177
181
  readonly operation: string;
178
182
  }[] | undefined;
@@ -152,6 +152,8 @@ export declare function writeSchema(configure: (env: Environment) => void): Sche
152
152
  triggers: Schema.optional<Schema.Array$<Schema.Struct<{
153
153
  target: Schema.refine<string, typeof Schema.String>;
154
154
  operation: Schema.SchemaClass<string, string, never>;
155
+ compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
156
+ params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
155
157
  }>>>;
156
158
  }>]>;
157
159
  export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
@@ -267,6 +269,8 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
267
269
  triggers: Schema.optional<Schema.Array$<Schema.Struct<{
268
270
  target: Schema.refine<string, typeof Schema.String>;
269
271
  operation: Schema.SchemaClass<string, string, never>;
272
+ compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
273
+ params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
270
274
  }>>>;
271
275
  }>]>, {
272
276
  default: () => {
@@ -164,8 +164,8 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
164
164
  } | undefined;
165
165
  readonly dataSource?: {
166
166
  readonly data: string;
167
- readonly request?: string | undefined;
168
167
  readonly total?: string | undefined;
168
+ readonly request?: string | undefined;
169
169
  } | undefined;
170
170
  readonly actions?: {
171
171
  readonly size: "default" | "sm" | "xs";
@@ -614,8 +614,8 @@ export declare function createTableConfig(body: Omit<Schema.Schema.Type<ReturnTy
614
614
  } | undefined;
615
615
  dataSource?: {
616
616
  readonly data: string;
617
- readonly request?: string | undefined;
618
617
  readonly total?: string | undefined;
618
+ readonly request?: string | undefined;
619
619
  } | undefined;
620
620
  actions?: {
621
621
  readonly size: "default" | "sm" | "xs";
@@ -0,0 +1,11 @@
1
+ import type { ProgressRootProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = ProgressRootProps & {
4
+ class?: HTMLAttributes['class'];
5
+ indicatorClass?: HTMLAttributes['class'];
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ modelValue: number | null;
9
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,32 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { ProgressIndicator, ProgressRoot, useForwardProps } from "reka-ui";
4
+ import { cn } from "../../../utils/cn";
5
+ defineOptions({ name: "UiProgress" });
6
+ const props = defineProps({
7
+ modelValue: { type: [Number, null], required: false, default: 0 },
8
+ max: { type: Number, required: false },
9
+ getValueLabel: { type: Function, required: false },
10
+ getValueText: { type: Function, required: false },
11
+ asChild: { type: Boolean, required: false },
12
+ as: { type: null, required: false },
13
+ class: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
14
+ indicatorClass: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true }
15
+ });
16
+ const delegatedProps = reactiveOmit(props, "class", "indicatorClass");
17
+ const forwarded = useForwardProps(delegatedProps);
18
+ </script>
19
+
20
+ <template>
21
+ <ProgressRoot
22
+ data-slot="progress"
23
+ v-bind="forwarded"
24
+ :class="cn('bg-zinc-200 relative h-2 w-full overflow-hidden rounded-full', props.class)"
25
+ >
26
+ <ProgressIndicator
27
+ data-slot="progress-indicator"
28
+ :class="cn('relative block h-full w-full overflow-hidden transition-transform duration-[660ms] ease-[cubic-bezier(0.65,0,0.35,1)] after:absolute after:inset-0 after:animate-progress after:content-[\'\'] after:bg-[linear-gradient(-45deg,_rgba(255,255,255,0.2)_25%,_transparent_25%,_transparent_50%,_rgba(255,255,255,0.2)_50%,_rgba(255,255,255,0.2)_75%,_transparent_75%,_transparent)] after:bg-[length:30px_30px]', props.indicatorClass ?? 'bg-(--primary)')"
29
+ :style="`transform: translateX(-${100 - (props.modelValue ?? 0)}%);`"
30
+ />
31
+ </ProgressRoot>
32
+ </template>
@@ -0,0 +1,11 @@
1
+ import type { ProgressRootProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = ProgressRootProps & {
4
+ class?: HTMLAttributes['class'];
5
+ indicatorClass?: HTMLAttributes['class'];
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ modelValue: number | null;
9
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Progress } from './Progress.vue.js';
@@ -0,0 +1 @@
1
+ export { default as Progress } from "./Progress.vue";
@@ -59,10 +59,38 @@ type AlertSession = {
59
59
  pendingResult?: boolean;
60
60
  finalizeScheduled?: boolean;
61
61
  };
62
+ type ProgressSession = {
63
+ progressId: string;
64
+ open: boolean;
65
+ total: number;
66
+ done: number;
67
+ content: string;
68
+ cancellable: boolean;
69
+ cancelled: boolean;
70
+ finished: boolean;
71
+ failed: boolean;
72
+ };
73
+ export type ProgressHandle = Readonly<{
74
+ progressId: string;
75
+ /** Mark one more unit of work done — advances the bar. */
76
+ advance: Effect.Effect<void>;
77
+ /** Replace the dialog's markdown body (re-rendered as counts change). */
78
+ setContent: (content: string) => Effect.Effect<void>;
79
+ /** Whether the user has hit Cancel — poll between units of work. */
80
+ isCancelled: Effect.Effect<boolean>;
81
+ /** Flag that a unit of work failed — turns the bar red for the rest of the run. */
82
+ markFailed: Effect.Effect<void>;
83
+ /**
84
+ * Mark the work done. The dialog stays on screen (showing the final state)
85
+ * until the user closes it — run this from a finalizer so it always fires.
86
+ */
87
+ finish: Effect.Effect<void>;
88
+ }>;
62
89
  interface OverlayRuntime {
63
90
  definitions: Readonly<Record<string, OverlayDefinition>>;
64
91
  sessions: ReadonlyArray<OverlaySession>;
65
92
  alerts: ReadonlyArray<AlertSession>;
93
+ progress: ReadonlyArray<ProgressSession>;
66
94
  topSession: OverlaySession | undefined;
67
95
  registerDefinition: (definition: OverlayDefinition) => void;
68
96
  unregisterDefinition: (definitionId: string, ownerId?: string) => void;
@@ -79,6 +107,13 @@ interface OverlayRuntime {
79
107
  color?: string;
80
108
  }) => Effect.Effect<boolean>;
81
109
  closeAlert: (alertId: string, result: boolean, explicit?: boolean) => Effect.Effect<void>;
110
+ openProgress: (input: {
111
+ total: number;
112
+ cancellable: boolean;
113
+ content: string;
114
+ }) => Effect.Effect<ProgressHandle>;
115
+ cancelProgress: (progressId: string) => void;
116
+ closeProgress: (progressId: string) => void;
82
117
  }
83
118
  export type { OverlayDefinition };
84
119
  export declare function useOverlay(): OverlayRuntime;
@@ -10,6 +10,52 @@ function createOverlayRuntime() {
10
10
  const definitions = reactive({});
11
11
  const sessions = ref([]);
12
12
  const alerts = ref([]);
13
+ const progress = ref([]);
14
+ function openProgress(input) {
15
+ return Effect.sync(() => {
16
+ const progressId = crypto.randomUUID();
17
+ progress.value.push({
18
+ progressId,
19
+ open: true,
20
+ total: input.total,
21
+ done: 0,
22
+ content: input.content,
23
+ cancellable: input.cancellable,
24
+ cancelled: false,
25
+ finished: false,
26
+ failed: false
27
+ });
28
+ const live = progress.value[progress.value.length - 1];
29
+ return {
30
+ progressId,
31
+ advance: Effect.sync(() => {
32
+ live.done += 1;
33
+ }),
34
+ setContent: (content) => Effect.sync(() => {
35
+ live.content = content;
36
+ }),
37
+ isCancelled: Effect.sync(() => live.cancelled),
38
+ markFailed: Effect.sync(() => {
39
+ live.failed = true;
40
+ }),
41
+ finish: Effect.sync(() => {
42
+ live.finished = true;
43
+ })
44
+ };
45
+ });
46
+ }
47
+ function cancelProgress(progressId) {
48
+ const session = progress.value.find((p) => p.progressId === progressId);
49
+ if (session) {
50
+ session.cancelled = true;
51
+ }
52
+ }
53
+ function closeProgress(progressId) {
54
+ const index = progress.value.findIndex((p) => p.progressId === progressId);
55
+ if (index >= 0) {
56
+ progress.value.splice(index, 1);
57
+ }
58
+ }
13
59
  function openAlert(input) {
14
60
  return Effect.gen(function* () {
15
61
  const deferred = yield* Deferred.make();
@@ -192,6 +238,9 @@ function createOverlayRuntime() {
192
238
  get alerts() {
193
239
  return alerts.value;
194
240
  },
241
+ get progress() {
242
+ return progress.value;
243
+ },
195
244
  get topSession() {
196
245
  return sessions.value.at(-1);
197
246
  },
@@ -220,6 +269,9 @@ function createOverlayRuntime() {
220
269
  }),
221
270
  openAlert,
222
271
  closeAlert,
272
+ openProgress,
273
+ cancelProgress,
274
+ closeProgress,
223
275
  finalizeClose
224
276
  };
225
277
  return runtime;
@@ -6,6 +6,13 @@ export type OpRequest = Readonly<{
6
6
  target: string;
7
7
  /** Operation id from that component type's capability manifest. */
8
8
  operation: string;
9
+ /**
10
+ * Configured params for a parameterized operation, carried verbatim from the
11
+ * trigger row to the handler. Absent for param-less ops. The bus does not
12
+ * interpret or resolve these — what they mean, and against which context any
13
+ * CEL/locale in them resolves, is the receiving operation's own concern.
14
+ */
15
+ params?: unknown;
9
16
  }>;
10
17
  /**
11
18
  * The persisted form of a trigger — one stored row addressing an ancestor
@@ -15,6 +22,8 @@ export type OpRequest = Readonly<{
15
22
  export declare const Trigger: Schema.Struct<{
16
23
  target: Schema.refine<string, typeof Schema.String>;
17
24
  operation: Schema.SchemaClass<string, string, never>;
25
+ compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
26
+ params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
18
27
  }>;
19
28
  /**
20
29
  * An ordered list of triggers. A button that fires triggers embeds this as
@@ -26,6 +35,8 @@ export declare const Trigger: Schema.Struct<{
26
35
  export declare const Triggers: Schema.Array$<Schema.Struct<{
27
36
  target: Schema.refine<string, typeof Schema.String>;
28
37
  operation: Schema.SchemaClass<string, string, never>;
38
+ compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
39
+ params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
29
40
  }>>;
30
41
  /** One stored trigger row. */
31
42
  export type TriggerValue = Schema.Schema.Type<typeof Trigger>;
@@ -41,7 +52,10 @@ export type EventChannel = Readonly<{
41
52
  }>;
42
53
  /**
43
54
  * Operation id → handler, for one operation-exposing instance. Handlers
44
- * return an Effect so the bus can run them serially and in order.
55
+ * return an Effect so the bus can run them serially and in order, and receive
56
+ * the request's `params` (the configured params of a parameterized operation;
57
+ * `undefined` for param-less ops — a handler that ignores the arg is the
58
+ * common case and stays assignable).
45
59
  *
46
60
  * The `void` error channel pins handlers as infallible *failures* — a handler
47
61
  * that hits a recoverable hiccup must swallow/log it internally (mirrors the
@@ -65,7 +79,7 @@ export type EventChannel = Readonly<{
65
79
  * pre-request trigger list, so validation is explicit and configured rather
66
80
  * than an implicit host gate.
67
81
  */
68
- export type OperationHandlers = Readonly<Record<string, () => Effect.Effect<void>>>;
82
+ export type OperationHandlers = Readonly<Record<string, (params?: unknown) => Effect.Effect<void>>>;
69
83
  export declare const EVENT_CHANNEL_KEY: InjectionKey<EventChannel>;
70
84
  /**
71
85
  * Build a channel node for an operation-exposing instance. `dispatch` runs
@@ -105,6 +119,14 @@ export type OperationDescriptor = Readonly<{
105
119
  id: string;
106
120
  name: string;
107
121
  icon?: string;
122
+ /**
123
+ * Present iff this operation is parameterized — the `compatibilityDate` of
124
+ * its operation-block in the operations registry. The trigger editor reads
125
+ * it to know an op carries params: on add it seeds `defaults()` and renders
126
+ * the op's `config.vue`; `id` doubles as the operation-block `type`. Absent
127
+ * for param-less ops (close / validate / refetch).
128
+ */
129
+ compatibilityDate?: string;
108
130
  }>;
109
131
  /** An operation-exposing ancestor instance, as seen by the trigger config UI. */
110
132
  export type EventAncestor = Readonly<{