@shwfed/config 2.11.1 → 2.11.5

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 (139) hide show
  1. package/dist/mcp.mjs +1592 -1220
  2. package/dist/module.json +1 -1
  3. package/dist/preview/assets/{FieldGroup.vue_vue_type_script_setup_true_lang-CosmpPSu.js → FieldGroup.vue_vue_type_script_setup_true_lang-BK4nj6mF.js} +1 -1
  4. package/dist/preview/assets/{badge-BkYCxTFK.js → badge-Df9KgnrB.js} +1 -1
  5. package/dist/preview/assets/config-B3NwVBxT.js +1 -0
  6. package/dist/preview/assets/{config-Dt8k1gnT.js → config-BrtNnMlJ.js} +1 -1
  7. package/dist/preview/assets/{config-Cbp7aAAw.js → config-CUJNegvX.js} +1 -1
  8. package/dist/preview/assets/{config-C_Ia1CDq.js → config-ChrXUmKf.js} +1 -1
  9. package/dist/preview/assets/{config-B62b9dMF.js → config-CmEXMpIU.js} +1 -1
  10. package/dist/preview/assets/{config-Dk9OegYx.js → config-CrBoFiYB.js} +1 -1
  11. package/dist/preview/assets/{config-74YmXQsH.js → config-D-Hf0dls.js} +1 -1
  12. package/dist/preview/assets/{config-Bt6--diX.js → config-D4cXwy75.js} +1 -1
  13. package/dist/preview/assets/{config-BcZe-bR9.js → config-DCj5Qyiq.js} +1 -1
  14. package/dist/preview/assets/{config-sCP15_0f.js → config-DPfx03nM.js} +1 -1
  15. package/dist/preview/assets/{config-Bbbyd5lB.js → config-DWF0bcmF.js} +1 -1
  16. package/dist/preview/assets/{config-CPsd0ppi.js → config-Do4K9hI7.js} +1 -1
  17. package/dist/preview/assets/config-DwblM1r8.js +1 -0
  18. package/dist/preview/assets/{config-CYVafGLc.js → config-MW5Hs8yE.js} +1 -1
  19. package/dist/preview/assets/{config-COr2MFhN.js → config-uNoNEc-1.js} +1 -1
  20. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-C3NiB99t.js → definition.vue_vue_type_script_setup_true_lang-CbtpddWK.js} +1 -1
  21. package/dist/preview/assets/index-Bm7I4Tr0.css +1 -0
  22. package/dist/preview/assets/{index-DjG-VVR4.js → index-CkyV576r.js} +217 -205
  23. package/dist/preview/assets/{index-BMOizF8g.js → index-CtW2E0ME.js} +1 -1
  24. package/dist/preview/assets/index-xDmBF3zO.js +1 -0
  25. package/dist/preview/assets/{item-C1efxuFt.js → item-D0e9Cx1Q.js} +1 -1
  26. package/dist/preview/assets/{runtime-Du0ghzR2.js → runtime-3tGIbclh.js} +1 -1
  27. package/dist/preview/assets/{runtime-7z9N9JGG.js → runtime-BCePD3XR.js} +1 -1
  28. package/dist/preview/assets/runtime-BMyFUaSM.js +1 -0
  29. package/dist/preview/assets/runtime-BXZU3EqA.js +1 -0
  30. package/dist/preview/assets/{runtime-LgZuN2Tf.js → runtime-BySNFNSO.js} +1 -1
  31. package/dist/preview/assets/{runtime-Dz7SCudL.js → runtime-CI02gDFj.js} +1 -1
  32. package/dist/preview/assets/{runtime-DoLpKFu-.js → runtime-DCo1Qp8a.js} +1 -1
  33. package/dist/preview/assets/runtime-DDSKV70N.js +1 -0
  34. package/dist/preview/assets/runtime-Dc7pytUy.js +1 -0
  35. package/dist/preview/assets/{runtime-S9eZ2nJS.js → runtime-ckLrkTMm.js} +1 -1
  36. package/dist/preview/assets/runtime-y4oJ8VkY.js +1 -0
  37. package/dist/preview/assets/{schema-meta-CYKPEnu9.js → schema-meta-D0y0sKal.js} +1 -1
  38. package/dist/preview/index.html +2 -2
  39. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/config.d.vue.ts +39 -0
  40. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/config.vue +127 -0
  41. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/config.vue.d.ts +39 -0
  42. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/runtime.d.vue.ts +8 -0
  43. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/runtime.vue +62 -0
  44. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/runtime.vue.d.ts +8 -0
  45. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/schema.d.ts +25 -0
  46. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/schema.js +41 -0
  47. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.vue +5 -22
  48. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/config.d.vue.ts +70 -0
  49. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/config.vue +349 -0
  50. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/config.vue.d.ts +70 -0
  51. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/loop-item.d.vue.ts +33 -0
  52. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/loop-item.vue +37 -0
  53. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/loop-item.vue.d.ts +33 -0
  54. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/loop-scope-provider.d.vue.ts +13 -0
  55. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/loop-scope-provider.vue +22 -0
  56. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/loop-scope-provider.vue.d.ts +13 -0
  57. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/runtime.d.vue.ts +70 -0
  58. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/runtime.vue +62 -0
  59. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/runtime.vue.d.ts +70 -0
  60. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/schema.d.ts +85 -0
  61. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/schema.js +60 -0
  62. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.d.vue.ts +2 -2
  63. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue.d.ts +2 -2
  64. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +4 -4
  65. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +4 -4
  66. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +6 -6
  67. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +6 -6
  68. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +2 -2
  69. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +2 -2
  70. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +22 -22
  71. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +22 -22
  72. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +4 -4
  73. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +4 -4
  74. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +22 -22
  75. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +22 -22
  76. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
  77. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
  78. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +22 -22
  79. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +22 -22
  80. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
  81. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
  82. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +22 -22
  83. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +22 -22
  84. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/runtime.vue +2 -19
  85. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +22 -22
  86. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +22 -22
  87. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/runtime.vue +5 -22
  88. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/config.d.vue.ts +2 -0
  89. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/config.vue +49 -22
  90. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/config.vue.d.ts +2 -0
  91. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/runtime.js +17 -10
  92. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts +1 -0
  93. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.js +25 -3
  94. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -2
  95. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -2
  96. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -2
  97. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -2
  98. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +2 -2
  99. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -2
  100. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -2
  101. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
  102. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
  103. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
  104. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
  105. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
  106. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/runtime.vue +5 -1
  107. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/runtime.vue +5 -1
  108. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.vue +81 -2
  109. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/runtime.vue +35 -1
  110. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +132 -0
  111. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +28 -2
  112. package/dist/runtime/components/ui/date-picker/DatePicker.d.vue.ts +11 -1
  113. package/dist/runtime/components/ui/date-picker/DatePicker.vue +8 -1
  114. package/dist/runtime/components/ui/date-picker/DatePicker.vue.d.ts +11 -1
  115. package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +12 -2
  116. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue +4 -0
  117. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +12 -2
  118. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +1 -1
  119. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +1 -1
  120. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +1 -1
  121. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +1 -1
  122. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +2 -2
  123. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +2 -2
  124. package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +1 -1
  125. package/dist/runtime/share/loop-item-var.d.ts +21 -0
  126. package/dist/runtime/share/loop-item-var.js +13 -0
  127. package/dist/runtime/vendor/cel-js/CLAUDE.md +2 -2
  128. package/dist/runtime/vendor/cel-js/PROMPT.md +7 -0
  129. package/dist/runtime/vendor/cel-js/lib/functions.js +25 -1
  130. package/dist/runtime/vendor/cel-js/lib/http-builder.d.ts +38 -3
  131. package/dist/runtime/vendor/cel-js/lib/http-builder.js +33 -0
  132. package/package.json +1 -1
  133. package/dist/preview/assets/config-BHYlKhDX.js +0 -1
  134. package/dist/preview/assets/index-C9G8y6qZ.js +0 -1
  135. package/dist/preview/assets/index-DqRQ67sX.css +0 -1
  136. package/dist/preview/assets/runtime-Bpa1zRxG.js +0 -1
  137. package/dist/preview/assets/runtime-Csv04MYG.js +0 -1
  138. package/dist/preview/assets/runtime-D0bjM4NL.js +0 -1
  139. package/dist/preview/assets/runtime-Dz3ZQYdq.js +0 -1
@@ -44,17 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
44
44
  readonly data: string;
45
45
  readonly request?: string | undefined;
46
46
  };
47
- readonly validations?: readonly {
48
- readonly message: readonly [{
49
- readonly locale: "zh";
50
- readonly message: string;
51
- }, ...{
52
- readonly locale: "en" | "ja" | "ko";
53
- readonly message: string;
54
- }[]];
55
- readonly warning?: boolean | undefined;
56
- readonly when: string;
57
- }[] | undefined;
58
47
  readonly nodeKey: string;
59
48
  readonly nodeChildren: string;
60
49
  readonly nodeLabel: readonly [{
@@ -73,6 +62,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
73
62
  }[]] | undefined;
74
63
  readonly nodeSelectable?: string | undefined;
75
64
  readonly expandAll: boolean;
65
+ readonly validations?: readonly {
66
+ readonly message: readonly [{
67
+ readonly locale: "zh";
68
+ readonly message: string;
69
+ }, ...{
70
+ readonly locale: "en" | "ja" | "ko";
71
+ readonly message: string;
72
+ }[]];
73
+ readonly warning?: boolean | undefined;
74
+ readonly when: string;
75
+ }[] | undefined;
76
76
  }) => any;
77
77
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
78
78
  "onUpdate:modelValue"?: ((value: {
@@ -116,17 +116,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
116
116
  readonly data: string;
117
117
  readonly request?: string | undefined;
118
118
  };
119
- readonly validations?: readonly {
120
- readonly message: readonly [{
121
- readonly locale: "zh";
122
- readonly message: string;
123
- }, ...{
124
- readonly locale: "en" | "ja" | "ko";
125
- readonly message: string;
126
- }[]];
127
- readonly warning?: boolean | undefined;
128
- readonly when: string;
129
- }[] | undefined;
130
119
  readonly nodeKey: string;
131
120
  readonly nodeChildren: string;
132
121
  readonly nodeLabel: readonly [{
@@ -145,6 +134,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
145
134
  }[]] | undefined;
146
135
  readonly nodeSelectable?: string | undefined;
147
136
  readonly expandAll: boolean;
137
+ readonly validations?: readonly {
138
+ readonly message: readonly [{
139
+ readonly locale: "zh";
140
+ readonly message: string;
141
+ }, ...{
142
+ readonly locale: "en" | "ja" | "ko";
143
+ readonly message: string;
144
+ }[]];
145
+ readonly warning?: boolean | undefined;
146
+ readonly when: string;
147
+ }[] | undefined;
148
148
  }) => any) | undefined;
149
149
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
150
150
  declare const _default: typeof __VLS_export;
@@ -44,17 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
44
44
  readonly data: string;
45
45
  readonly request?: string | undefined;
46
46
  };
47
- readonly validations?: readonly {
48
- readonly message: readonly [{
49
- readonly locale: "zh";
50
- readonly message: string;
51
- }, ...{
52
- readonly locale: "en" | "ja" | "ko";
53
- readonly message: string;
54
- }[]];
55
- readonly warning?: boolean | undefined;
56
- readonly when: string;
57
- }[] | undefined;
58
47
  readonly nodeKey: string;
59
48
  readonly nodeChildren: string;
60
49
  readonly nodeLabel: readonly [{
@@ -73,6 +62,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
73
62
  }[]] | undefined;
74
63
  readonly nodeSelectable?: string | undefined;
75
64
  readonly expandAll: boolean;
65
+ readonly validations?: readonly {
66
+ readonly message: readonly [{
67
+ readonly locale: "zh";
68
+ readonly message: string;
69
+ }, ...{
70
+ readonly locale: "en" | "ja" | "ko";
71
+ readonly message: string;
72
+ }[]];
73
+ readonly warning?: boolean | undefined;
74
+ readonly when: string;
75
+ }[] | undefined;
76
76
  }) => any;
77
77
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
78
78
  "onUpdate:modelValue"?: ((value: {
@@ -116,17 +116,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
116
116
  readonly data: string;
117
117
  readonly request?: string | undefined;
118
118
  };
119
- readonly validations?: readonly {
120
- readonly message: readonly [{
121
- readonly locale: "zh";
122
- readonly message: string;
123
- }, ...{
124
- readonly locale: "en" | "ja" | "ko";
125
- readonly message: string;
126
- }[]];
127
- readonly warning?: boolean | undefined;
128
- readonly when: string;
129
- }[] | undefined;
130
119
  readonly nodeKey: string;
131
120
  readonly nodeChildren: string;
132
121
  readonly nodeLabel: readonly [{
@@ -145,6 +134,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
145
134
  }[]] | undefined;
146
135
  readonly nodeSelectable?: string | undefined;
147
136
  readonly expandAll: boolean;
137
+ readonly validations?: readonly {
138
+ readonly message: readonly [{
139
+ readonly locale: "zh";
140
+ readonly message: string;
141
+ }, ...{
142
+ readonly locale: "en" | "ja" | "ko";
143
+ readonly message: string;
144
+ }[]];
145
+ readonly warning?: boolean | undefined;
146
+ readonly when: string;
147
+ }[] | undefined;
148
148
  }) => any) | undefined;
149
149
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
150
150
  declare const _default: typeof __VLS_export;
@@ -47,17 +47,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
47
47
  readonly request?: string | undefined;
48
48
  };
49
49
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
50
- readonly validations?: readonly {
51
- readonly message: readonly [{
52
- readonly locale: "zh";
53
- readonly message: string;
54
- }, ...{
55
- readonly locale: "en" | "ja" | "ko";
56
- readonly message: string;
57
- }[]];
58
- readonly warning?: boolean | undefined;
59
- readonly when: string;
60
- }[] | undefined;
61
50
  readonly nodeKey: string;
62
51
  readonly nodeChildren: string;
63
52
  readonly nodeLabel: readonly [{
@@ -76,6 +65,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
76
65
  }[]] | undefined;
77
66
  readonly nodeSelectable?: string | undefined;
78
67
  readonly expandAll: boolean;
68
+ readonly validations?: readonly {
69
+ readonly message: readonly [{
70
+ readonly locale: "zh";
71
+ readonly message: string;
72
+ }, ...{
73
+ readonly locale: "en" | "ja" | "ko";
74
+ readonly message: string;
75
+ }[]];
76
+ readonly warning?: boolean | undefined;
77
+ readonly when: string;
78
+ }[] | undefined;
79
79
  }) => any;
80
80
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
81
81
  "onUpdate:modelValue"?: ((value: {
@@ -122,17 +122,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
122
122
  readonly request?: string | undefined;
123
123
  };
124
124
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
125
- readonly validations?: readonly {
126
- readonly message: readonly [{
127
- readonly locale: "zh";
128
- readonly message: string;
129
- }, ...{
130
- readonly locale: "en" | "ja" | "ko";
131
- readonly message: string;
132
- }[]];
133
- readonly warning?: boolean | undefined;
134
- readonly when: string;
135
- }[] | undefined;
136
125
  readonly nodeKey: string;
137
126
  readonly nodeChildren: string;
138
127
  readonly nodeLabel: readonly [{
@@ -151,6 +140,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
151
140
  }[]] | undefined;
152
141
  readonly nodeSelectable?: string | undefined;
153
142
  readonly expandAll: boolean;
143
+ readonly validations?: readonly {
144
+ readonly message: readonly [{
145
+ readonly locale: "zh";
146
+ readonly message: string;
147
+ }, ...{
148
+ readonly locale: "en" | "ja" | "ko";
149
+ readonly message: string;
150
+ }[]];
151
+ readonly warning?: boolean | undefined;
152
+ readonly when: string;
153
+ }[] | undefined;
154
154
  }) => any) | undefined;
155
155
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
156
156
  declare const _default: typeof __VLS_export;
@@ -47,17 +47,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
47
47
  readonly request?: string | undefined;
48
48
  };
49
49
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
50
- readonly validations?: readonly {
51
- readonly message: readonly [{
52
- readonly locale: "zh";
53
- readonly message: string;
54
- }, ...{
55
- readonly locale: "en" | "ja" | "ko";
56
- readonly message: string;
57
- }[]];
58
- readonly warning?: boolean | undefined;
59
- readonly when: string;
60
- }[] | undefined;
61
50
  readonly nodeKey: string;
62
51
  readonly nodeChildren: string;
63
52
  readonly nodeLabel: readonly [{
@@ -76,6 +65,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
76
65
  }[]] | undefined;
77
66
  readonly nodeSelectable?: string | undefined;
78
67
  readonly expandAll: boolean;
68
+ readonly validations?: readonly {
69
+ readonly message: readonly [{
70
+ readonly locale: "zh";
71
+ readonly message: string;
72
+ }, ...{
73
+ readonly locale: "en" | "ja" | "ko";
74
+ readonly message: string;
75
+ }[]];
76
+ readonly warning?: boolean | undefined;
77
+ readonly when: string;
78
+ }[] | undefined;
79
79
  }) => any;
80
80
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
81
81
  "onUpdate:modelValue"?: ((value: {
@@ -122,17 +122,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
122
122
  readonly request?: string | undefined;
123
123
  };
124
124
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
125
- readonly validations?: readonly {
126
- readonly message: readonly [{
127
- readonly locale: "zh";
128
- readonly message: string;
129
- }, ...{
130
- readonly locale: "en" | "ja" | "ko";
131
- readonly message: string;
132
- }[]];
133
- readonly warning?: boolean | undefined;
134
- readonly when: string;
135
- }[] | undefined;
136
125
  readonly nodeKey: string;
137
126
  readonly nodeChildren: string;
138
127
  readonly nodeLabel: readonly [{
@@ -151,6 +140,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
151
140
  }[]] | undefined;
152
141
  readonly nodeSelectable?: string | undefined;
153
142
  readonly expandAll: boolean;
143
+ readonly validations?: readonly {
144
+ readonly message: readonly [{
145
+ readonly locale: "zh";
146
+ readonly message: string;
147
+ }, ...{
148
+ readonly locale: "en" | "ja" | "ko";
149
+ readonly message: string;
150
+ }[]];
151
+ readonly warning?: boolean | undefined;
152
+ readonly when: string;
153
+ }[] | undefined;
154
154
  }) => any) | undefined;
155
155
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
156
156
  declare const _default: typeof __VLS_export;
@@ -30,22 +30,16 @@ const { locale, t } = useI18n({
30
30
  zh: {
31
31
  "tree-multi-search-label": "\u641C\u7D22",
32
32
  "tree-multi-search-clear": "\u6E05\u9664\u641C\u7D22",
33
- "tree-multi-load-error": "\u52A0\u8F7D\u5931\u8D25",
34
- "tree-multi-empty": "\u65E0\u53EF\u9009\u9879",
35
33
  "tree-multi-readonly-separator": "\u3001"
36
34
  },
37
35
  en: {
38
36
  "tree-multi-search-label": "Search",
39
37
  "tree-multi-search-clear": "Clear search",
40
- "tree-multi-load-error": "Failed to load",
41
- "tree-multi-empty": "No options",
42
38
  "tree-multi-readonly-separator": ", "
43
39
  },
44
40
  ja: {
45
41
  "tree-multi-search-label": "\u691C\u7D22",
46
42
  "tree-multi-search-clear": "\u691C\u7D22\u3092\u30AF\u30EA\u30A2",
47
- "tree-multi-load-error": "\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
48
- "tree-multi-empty": "\u9078\u629E\u80A2\u306A\u3057",
49
43
  "tree-multi-readonly-separator": "\u3001"
50
44
  }
51
45
  }
@@ -98,7 +92,6 @@ const model = computed({
98
92
  });
99
93
  const roots = ref([]);
100
94
  const loading = ref(false);
101
- const fetchError = ref(null);
102
95
  async function fetchTree() {
103
96
  const dataSource = props.config.dataSource;
104
97
  if (!dataSource) {
@@ -133,10 +126,8 @@ async function fetchTree() {
133
126
  try {
134
127
  const result = await Effect.runPromise(Effect.provide(program, Fetch.layer));
135
128
  roots.value = result;
136
- fetchError.value = null;
137
129
  } catch (e) {
138
130
  console.warn("[shwfed-form] tree dataSource fetch failed", e);
139
- fetchError.value = e;
140
131
  }
141
132
  }
142
133
  watch(
@@ -360,13 +351,7 @@ const readonlyText = computed(() => {
360
351
  </Field>
361
352
 
362
353
  <div
363
- v-if="fetchError && roots.length === 0"
364
- class="min-h-9 py-1.5 text-sm text-red-500"
365
- >
366
- {{ t("tree-multi-load-error") }}
367
- </div>
368
- <div
369
- v-else-if="loading && roots.length === 0"
354
+ v-if="loading && roots.length === 0"
370
355
  class="flex flex-col gap-1.5 py-1"
371
356
  aria-busy="true"
372
357
  >
@@ -419,9 +404,7 @@ const readonlyText = computed(() => {
419
404
  </template>
420
405
 
421
406
  <template #empty>
422
- <div class="min-h-9 py-1.5 text-sm text-zinc-400">
423
- {{ t("tree-multi-empty") }}
424
- </div>
407
+ <span />
425
408
  </template>
426
409
  </UiTree>
427
410
  </template>
@@ -46,17 +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 validations?: readonly {
50
- readonly message: readonly [{
51
- readonly locale: "zh";
52
- readonly message: string;
53
- }, ...{
54
- readonly locale: "en" | "ja" | "ko";
55
- readonly message: string;
56
- }[]];
57
- readonly warning?: boolean | undefined;
58
- readonly when: string;
59
- }[] | undefined;
60
49
  readonly nodeKey: string;
61
50
  readonly nodeChildren: string;
62
51
  readonly nodeLabel: readonly [{
@@ -75,6 +64,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
75
64
  }[]] | undefined;
76
65
  readonly nodeSelectable?: string | undefined;
77
66
  readonly expandAll: boolean;
67
+ readonly validations?: readonly {
68
+ readonly message: readonly [{
69
+ readonly locale: "zh";
70
+ readonly message: string;
71
+ }, ...{
72
+ readonly locale: "en" | "ja" | "ko";
73
+ readonly message: string;
74
+ }[]];
75
+ readonly warning?: boolean | undefined;
76
+ readonly when: string;
77
+ }[] | undefined;
78
78
  }) => any;
79
79
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
80
80
  "onUpdate:modelValue"?: ((value: {
@@ -120,17 +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 validations?: readonly {
124
- readonly message: readonly [{
125
- readonly locale: "zh";
126
- readonly message: string;
127
- }, ...{
128
- readonly locale: "en" | "ja" | "ko";
129
- readonly message: string;
130
- }[]];
131
- readonly warning?: boolean | undefined;
132
- readonly when: string;
133
- }[] | undefined;
134
123
  readonly nodeKey: string;
135
124
  readonly nodeChildren: string;
136
125
  readonly nodeLabel: readonly [{
@@ -149,6 +138,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
149
138
  }[]] | undefined;
150
139
  readonly nodeSelectable?: string | undefined;
151
140
  readonly expandAll: boolean;
141
+ readonly validations?: readonly {
142
+ readonly message: readonly [{
143
+ readonly locale: "zh";
144
+ readonly message: string;
145
+ }, ...{
146
+ readonly locale: "en" | "ja" | "ko";
147
+ readonly message: string;
148
+ }[]];
149
+ readonly warning?: boolean | undefined;
150
+ readonly when: string;
151
+ }[] | undefined;
152
152
  }) => any) | undefined;
153
153
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
154
154
  declare const _default: typeof __VLS_export;
@@ -46,17 +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 validations?: readonly {
50
- readonly message: readonly [{
51
- readonly locale: "zh";
52
- readonly message: string;
53
- }, ...{
54
- readonly locale: "en" | "ja" | "ko";
55
- readonly message: string;
56
- }[]];
57
- readonly warning?: boolean | undefined;
58
- readonly when: string;
59
- }[] | undefined;
60
49
  readonly nodeKey: string;
61
50
  readonly nodeChildren: string;
62
51
  readonly nodeLabel: readonly [{
@@ -75,6 +64,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
75
64
  }[]] | undefined;
76
65
  readonly nodeSelectable?: string | undefined;
77
66
  readonly expandAll: boolean;
67
+ readonly validations?: readonly {
68
+ readonly message: readonly [{
69
+ readonly locale: "zh";
70
+ readonly message: string;
71
+ }, ...{
72
+ readonly locale: "en" | "ja" | "ko";
73
+ readonly message: string;
74
+ }[]];
75
+ readonly warning?: boolean | undefined;
76
+ readonly when: string;
77
+ }[] | undefined;
78
78
  }) => any;
79
79
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
80
80
  "onUpdate:modelValue"?: ((value: {
@@ -120,17 +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 validations?: readonly {
124
- readonly message: readonly [{
125
- readonly locale: "zh";
126
- readonly message: string;
127
- }, ...{
128
- readonly locale: "en" | "ja" | "ko";
129
- readonly message: string;
130
- }[]];
131
- readonly warning?: boolean | undefined;
132
- readonly when: string;
133
- }[] | undefined;
134
123
  readonly nodeKey: string;
135
124
  readonly nodeChildren: string;
136
125
  readonly nodeLabel: readonly [{
@@ -149,6 +138,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
149
138
  }[]] | undefined;
150
139
  readonly nodeSelectable?: string | undefined;
151
140
  readonly expandAll: boolean;
141
+ readonly validations?: readonly {
142
+ readonly message: readonly [{
143
+ readonly locale: "zh";
144
+ readonly message: string;
145
+ }, ...{
146
+ readonly locale: "en" | "ja" | "ko";
147
+ readonly message: string;
148
+ }[]];
149
+ readonly warning?: boolean | undefined;
150
+ readonly when: string;
151
+ }[] | undefined;
152
152
  }) => any) | undefined;
153
153
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
154
154
  declare const _default: typeof __VLS_export;
@@ -28,21 +28,15 @@ const { locale, t } = useI18n({
28
28
  messages: {
29
29
  zh: {
30
30
  "tree-single-search-label": "\u641C\u7D22",
31
- "tree-single-search-clear": "\u6E05\u9664\u641C\u7D22",
32
- "tree-single-load-error": "\u52A0\u8F7D\u5931\u8D25",
33
- "tree-single-empty": "\u65E0\u53EF\u9009\u9879"
31
+ "tree-single-search-clear": "\u6E05\u9664\u641C\u7D22"
34
32
  },
35
33
  en: {
36
34
  "tree-single-search-label": "Search",
37
- "tree-single-search-clear": "Clear search",
38
- "tree-single-load-error": "Failed to load",
39
- "tree-single-empty": "No options"
35
+ "tree-single-search-clear": "Clear search"
40
36
  },
41
37
  ja: {
42
38
  "tree-single-search-label": "\u691C\u7D22",
43
- "tree-single-search-clear": "\u691C\u7D22\u3092\u30AF\u30EA\u30A2",
44
- "tree-single-load-error": "\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
45
- "tree-single-empty": "\u9078\u629E\u80A2\u306A\u3057"
39
+ "tree-single-search-clear": "\u691C\u7D22\u3092\u30AF\u30EA\u30A2"
46
40
  }
47
41
  }
48
42
  });
@@ -94,7 +88,6 @@ const model = computed({
94
88
  });
95
89
  const roots = ref([]);
96
90
  const loading = ref(false);
97
- const fetchError = ref(null);
98
91
  async function fetchTree() {
99
92
  const dataSource = props.config.dataSource;
100
93
  if (!dataSource) {
@@ -129,10 +122,8 @@ async function fetchTree() {
129
122
  try {
130
123
  const result = await Effect.runPromise(Effect.provide(program, Fetch.layer));
131
124
  roots.value = result;
132
- fetchError.value = null;
133
125
  } catch (e) {
134
126
  console.warn("[shwfed-form] tree dataSource fetch failed", e);
135
- fetchError.value = e;
136
127
  }
137
128
  }
138
129
  watch(
@@ -347,13 +338,7 @@ const readonlyText = computed(() => {
347
338
  </Field>
348
339
 
349
340
  <div
350
- v-if="fetchError && roots.length === 0"
351
- class="min-h-9 py-1.5 text-sm text-red-500"
352
- >
353
- {{ t("tree-single-load-error") }}
354
- </div>
355
- <div
356
- v-else-if="loading && roots.length === 0"
341
+ v-if="loading && roots.length === 0"
357
342
  class="flex flex-col gap-1.5 py-1"
358
343
  aria-busy="true"
359
344
  >
@@ -404,9 +389,7 @@ const readonlyText = computed(() => {
404
389
  </template>
405
390
 
406
391
  <template #empty>
407
- <div class="min-h-9 py-1.5 text-sm text-zinc-400">
408
- {{ t("tree-single-empty") }}
409
- </div>
392
+ <span />
410
393
  </template>
411
394
  </UiTree>
412
395
  </template>
@@ -11,6 +11,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
11
11
  readonly locale: "en" | "ja" | "ko";
12
12
  readonly message: string;
13
13
  }[]] | undefined;
14
+ readonly resultExpression?: string | undefined;
14
15
  readonly expression: string;
15
16
  readonly titleExpression?: string | undefined;
16
17
  }) => any;
@@ -23,6 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
23
24
  readonly locale: "en" | "ja" | "ko";
24
25
  readonly message: string;
25
26
  }[]] | undefined;
27
+ readonly resultExpression?: string | undefined;
26
28
  readonly expression: string;
27
29
  readonly titleExpression?: string | undefined;
28
30
  }) => any) | undefined;
@@ -11,7 +11,9 @@ const opSchema = schema(() => {
11
11
  });
12
12
  const fieldTitle = (f) => getStructFieldTitle(opSchema, f) ?? f;
13
13
  const fieldDescription = (f) => getStructFieldDescription(opSchema, f);
14
+ const JSON_VAR = { json: { type: "dyn", label: "\u54CD\u5E94\uFF08JSON\uFF09" } };
14
15
  const OUTCOME_VARS = {
16
+ json: { type: "dyn", label: "\u54CD\u5E94\uFF08JSON\uFF09" },
15
17
  result: { type: "string", label: "\u6267\u884C\u7ED3\u679C" }
16
18
  };
17
19
  function patch(patchValue) {
@@ -56,28 +58,53 @@ function patchDescription(v) {
56
58
  />
57
59
  </Field>
58
60
 
59
- <Field orientation="vertical">
60
- <FieldLabel class="text-xs text-zinc-500">
61
- <template
62
- v-if="fieldDescription('titleExpression')"
63
- #tooltip
64
- >
65
- <Markdown
66
- :source="fieldDescription('titleExpression')"
67
- block
68
- class="prose prose-sm prose-zinc"
69
- />
70
- </template>
71
- {{ fieldTitle("titleExpression") }}
72
- </FieldLabel>
73
- <ExpressionEditor
74
- :model-value="value.titleExpression ?? ''"
75
- placeholder="例:result == 'error' ? '下载失败' : '下载成功'"
76
- result-type="string"
77
- :extra-vars="OUTCOME_VARS"
78
- @update:model-value="(v) => patchOptionalExpression('titleExpression', v)"
79
- />
80
- </Field>
61
+ <div class="grid grid-cols-2 gap-4">
62
+ <Field orientation="vertical">
63
+ <FieldLabel class="text-xs text-zinc-500">
64
+ <template
65
+ v-if="fieldDescription('resultExpression')"
66
+ #tooltip
67
+ >
68
+ <Markdown
69
+ :source="fieldDescription('resultExpression')"
70
+ block
71
+ class="prose prose-sm prose-zinc"
72
+ />
73
+ </template>
74
+ {{ fieldTitle("resultExpression") }}
75
+ </FieldLabel>
76
+ <ExpressionEditor
77
+ :model-value="value.resultExpression ?? ''"
78
+ placeholder="例:json.code == 0 ? 'success' : 'error'"
79
+ result-type="string"
80
+ :extra-vars="JSON_VAR"
81
+ @update:model-value="(v) => patchOptionalExpression('resultExpression', v)"
82
+ />
83
+ </Field>
84
+
85
+ <Field orientation="vertical">
86
+ <FieldLabel class="text-xs text-zinc-500">
87
+ <template
88
+ v-if="fieldDescription('titleExpression')"
89
+ #tooltip
90
+ >
91
+ <Markdown
92
+ :source="fieldDescription('titleExpression')"
93
+ block
94
+ class="prose prose-sm prose-zinc"
95
+ />
96
+ </template>
97
+ {{ fieldTitle("titleExpression") }}
98
+ </FieldLabel>
99
+ <ExpressionEditor
100
+ :model-value="value.titleExpression ?? ''"
101
+ placeholder="例:result == 'error' ? '下载失败' : '下载成功'"
102
+ result-type="string"
103
+ :extra-vars="OUTCOME_VARS"
104
+ @update:model-value="(v) => patchOptionalExpression('titleExpression', v)"
105
+ />
106
+ </Field>
107
+ </div>
81
108
 
82
109
  <Field orientation="vertical">
83
110
  <FieldLabel class="text-xs text-zinc-500">