@nocobase/plugin-flow-engine 2.1.0-alpha.13 → 2.1.0-alpha.15

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 (661) hide show
  1. package/dist/ai/ai-employees/nathan/index.js +1 -112
  2. package/dist/ai/ai-employees/nathan/prompt.md +132 -0
  3. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextApis.js +2 -2
  4. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextEnvs.js +2 -2
  5. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextVars.js +2 -2
  6. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/lintAndTestJS.js +2 -2
  7. package/dist/client/index.js +1 -1
  8. package/dist/externalVersion.js +10 -13
  9. package/dist/locale/en-US.json +1 -0
  10. package/dist/locale/index.d.ts +2 -0
  11. package/dist/locale/zh-CN.json +1 -0
  12. package/dist/node_modules/ses/package.json +1 -1
  13. package/dist/node_modules/zod/package.json +1 -1
  14. package/dist/server/flow-surfaces/action-scope.d.ts +37 -0
  15. package/dist/server/flow-surfaces/action-scope.js +146 -0
  16. package/dist/server/flow-surfaces/builder.d.ts +209 -0
  17. package/dist/server/flow-surfaces/builder.js +858 -0
  18. package/dist/server/flow-surfaces/catalog.d.ts +65 -0
  19. package/dist/server/flow-surfaces/catalog.js +2766 -0
  20. package/dist/server/flow-surfaces/chart-config.d.ts +121 -0
  21. package/dist/server/flow-surfaces/chart-config.js +1394 -0
  22. package/dist/server/flow-surfaces/compiler.d.ts +22 -0
  23. package/dist/server/flow-surfaces/compiler.js +1129 -0
  24. package/dist/server/flow-surfaces/configure-options.d.ts +23 -0
  25. package/dist/server/flow-surfaces/configure-options.js +671 -0
  26. package/dist/server/flow-surfaces/constants.d.ts +13 -0
  27. package/dist/server/flow-surfaces/constants.js +137 -0
  28. package/dist/server/flow-surfaces/context.d.ts +72 -0
  29. package/dist/server/flow-surfaces/context.js +556 -0
  30. package/dist/server/flow-surfaces/contract-guard.d.ts +19 -0
  31. package/dist/server/flow-surfaces/contract-guard.js +411 -0
  32. package/dist/server/flow-surfaces/errors.d.ts +47 -0
  33. package/dist/server/flow-surfaces/errors.js +145 -0
  34. package/dist/server/flow-surfaces/executor.d.ts +13 -0
  35. package/dist/server/flow-surfaces/executor.js +97 -0
  36. package/dist/server/flow-surfaces/field-semantics.d.ts +15 -0
  37. package/dist/server/flow-surfaces/field-semantics.js +80 -0
  38. package/dist/server/{flow-schema-registry → flow-surfaces}/index.d.ts +3 -2
  39. package/dist/server/flow-surfaces/index.js +352 -0
  40. package/dist/server/flow-surfaces/locator.d.ts +28 -0
  41. package/dist/server/flow-surfaces/locator.js +238 -0
  42. package/dist/server/flow-surfaces/placement.d.ts +33 -0
  43. package/dist/server/flow-surfaces/placement.js +192 -0
  44. package/dist/server/flow-surfaces/route-sync.d.ts +47 -0
  45. package/dist/server/flow-surfaces/route-sync.js +392 -0
  46. package/dist/server/flow-surfaces/service.d.ts +530 -0
  47. package/dist/server/flow-surfaces/service.js +7736 -0
  48. package/dist/server/flow-surfaces/support-matrix.d.ts +28 -0
  49. package/dist/server/flow-surfaces/support-matrix.js +246 -0
  50. package/dist/server/flow-surfaces/surface-context.d.ts +51 -0
  51. package/dist/server/flow-surfaces/surface-context.js +356 -0
  52. package/dist/server/flow-surfaces/types.d.ts +192 -0
  53. package/dist/server/index.d.ts +1 -1
  54. package/dist/server/index.js +6 -4
  55. package/dist/server/plugin.d.ts +0 -3
  56. package/dist/server/plugin.js +7 -36
  57. package/dist/server/repository.d.ts +9 -68
  58. package/dist/server/repository.js +106 -420
  59. package/dist/server/server.d.ts +0 -7
  60. package/dist/server/server.js +53 -23
  61. package/dist/server/variables/resolve.d.ts +21 -0
  62. package/dist/server/variables/resolve.js +79 -0
  63. package/dist/swagger/flow-surfaces.d.ts +3186 -0
  64. package/dist/swagger/flow-surfaces.js +4320 -0
  65. package/dist/swagger/index.d.ts +2837 -810
  66. package/dist/swagger/index.js +14 -696
  67. package/package.json +2 -4
  68. package/dist/node_modules/ajv/.runkit_example.js +0 -23
  69. package/dist/node_modules/ajv/LICENSE +0 -22
  70. package/dist/node_modules/ajv/dist/2019.d.ts +0 -19
  71. package/dist/node_modules/ajv/dist/2019.js +0 -61
  72. package/dist/node_modules/ajv/dist/2020.d.ts +0 -19
  73. package/dist/node_modules/ajv/dist/2020.js +0 -55
  74. package/dist/node_modules/ajv/dist/ajv.d.ts +0 -18
  75. package/dist/node_modules/ajv/dist/ajv.js +0 -7
  76. package/dist/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
  77. package/dist/node_modules/ajv/dist/compile/codegen/code.js +0 -156
  78. package/dist/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
  79. package/dist/node_modules/ajv/dist/compile/codegen/index.js +0 -697
  80. package/dist/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
  81. package/dist/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
  82. package/dist/node_modules/ajv/dist/compile/errors.d.ts +0 -13
  83. package/dist/node_modules/ajv/dist/compile/errors.js +0 -123
  84. package/dist/node_modules/ajv/dist/compile/index.d.ts +0 -80
  85. package/dist/node_modules/ajv/dist/compile/index.js +0 -242
  86. package/dist/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
  87. package/dist/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
  88. package/dist/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
  89. package/dist/node_modules/ajv/dist/compile/jtd/serialize.js +0 -236
  90. package/dist/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
  91. package/dist/node_modules/ajv/dist/compile/jtd/types.js +0 -14
  92. package/dist/node_modules/ajv/dist/compile/names.d.ts +0 -20
  93. package/dist/node_modules/ajv/dist/compile/names.js +0 -28
  94. package/dist/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
  95. package/dist/node_modules/ajv/dist/compile/ref_error.js +0 -12
  96. package/dist/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
  97. package/dist/node_modules/ajv/dist/compile/resolve.js +0 -155
  98. package/dist/node_modules/ajv/dist/compile/rules.d.ts +0 -28
  99. package/dist/node_modules/ajv/dist/compile/rules.js +0 -26
  100. package/dist/node_modules/ajv/dist/compile/util.d.ts +0 -40
  101. package/dist/node_modules/ajv/dist/compile/util.js +0 -178
  102. package/dist/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
  103. package/dist/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
  104. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
  105. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
  106. package/dist/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
  107. package/dist/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
  108. package/dist/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
  109. package/dist/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
  110. package/dist/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
  111. package/dist/node_modules/ajv/dist/compile/validate/index.js +0 -520
  112. package/dist/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
  113. package/dist/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
  114. package/dist/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
  115. package/dist/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
  116. package/dist/node_modules/ajv/dist/core.d.ts +0 -174
  117. package/dist/node_modules/ajv/dist/core.js +0 -618
  118. package/dist/node_modules/ajv/dist/jtd.d.ts +0 -47
  119. package/dist/node_modules/ajv/dist/jtd.js +0 -72
  120. package/dist/node_modules/ajv/dist/refs/data.json +0 -13
  121. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
  122. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
  123. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
  124. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
  125. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
  126. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
  127. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  128. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
  129. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
  130. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
  131. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
  132. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
  133. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
  134. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
  135. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  136. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  137. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  138. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
  139. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
  140. package/dist/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
  141. package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
  142. package/dist/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
  143. package/dist/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
  144. package/dist/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
  145. package/dist/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
  146. package/dist/node_modules/ajv/dist/runtime/equal.js +0 -7
  147. package/dist/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
  148. package/dist/node_modules/ajv/dist/runtime/parseJson.js +0 -185
  149. package/dist/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
  150. package/dist/node_modules/ajv/dist/runtime/quote.js +0 -30
  151. package/dist/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
  152. package/dist/node_modules/ajv/dist/runtime/re2.js +0 -6
  153. package/dist/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
  154. package/dist/node_modules/ajv/dist/runtime/timestamp.js +0 -42
  155. package/dist/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
  156. package/dist/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
  157. package/dist/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
  158. package/dist/node_modules/ajv/dist/runtime/uri.js +0 -6
  159. package/dist/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
  160. package/dist/node_modules/ajv/dist/runtime/validation_error.js +0 -11
  161. package/dist/node_modules/ajv/dist/standalone/index.d.ts +0 -6
  162. package/dist/node_modules/ajv/dist/standalone/index.js +0 -90
  163. package/dist/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
  164. package/dist/node_modules/ajv/dist/standalone/instance.js +0 -35
  165. package/dist/node_modules/ajv/dist/types/index.d.ts +0 -183
  166. package/dist/node_modules/ajv/dist/types/index.js +0 -3
  167. package/dist/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
  168. package/dist/node_modules/ajv/dist/types/json-schema.js +0 -3
  169. package/dist/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
  170. package/dist/node_modules/ajv/dist/types/jtd-schema.js +0 -3
  171. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
  172. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
  173. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
  174. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
  175. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
  176. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
  177. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
  178. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
  179. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
  180. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
  181. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
  182. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
  183. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
  184. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
  185. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
  186. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
  187. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
  188. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
  189. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
  190. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
  191. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
  192. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
  193. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
  194. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
  195. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
  196. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
  197. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
  198. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
  199. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
  200. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
  201. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
  202. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
  203. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
  204. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
  205. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
  206. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
  207. package/dist/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
  208. package/dist/node_modules/ajv/dist/vocabularies/code.js +0 -131
  209. package/dist/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
  210. package/dist/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
  211. package/dist/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
  212. package/dist/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
  213. package/dist/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
  214. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
  215. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
  216. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
  217. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
  218. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
  219. package/dist/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
  220. package/dist/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
  221. package/dist/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
  222. package/dist/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
  223. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
  224. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
  225. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
  226. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
  227. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
  228. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
  229. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
  230. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
  231. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
  232. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
  233. package/dist/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
  234. package/dist/node_modules/ajv/dist/vocabularies/errors.js +0 -3
  235. package/dist/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
  236. package/dist/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
  237. package/dist/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
  238. package/dist/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
  239. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
  240. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
  241. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
  242. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
  243. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
  244. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
  245. package/dist/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
  246. package/dist/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
  247. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
  248. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
  249. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
  250. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
  251. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
  252. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
  253. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
  254. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
  255. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
  256. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
  257. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
  258. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
  259. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
  260. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
  261. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
  262. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
  263. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
  264. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
  265. package/dist/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
  266. package/dist/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
  267. package/dist/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
  268. package/dist/node_modules/ajv/dist/vocabularies/next.js +0 -8
  269. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
  270. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
  271. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
  272. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
  273. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
  274. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
  275. package/dist/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
  276. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
  277. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
  278. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
  279. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
  280. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
  281. package/dist/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
  282. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
  283. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
  284. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
  285. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
  286. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
  287. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
  288. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
  289. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
  290. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
  291. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
  292. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
  293. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
  294. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
  295. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
  296. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -33
  297. package/dist/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
  298. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
  299. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
  300. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
  301. package/dist/node_modules/ajv/lib/2019.ts +0 -81
  302. package/dist/node_modules/ajv/lib/2020.ts +0 -75
  303. package/dist/node_modules/ajv/lib/ajv.ts +0 -70
  304. package/dist/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
  305. package/dist/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
  306. package/dist/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
  307. package/dist/node_modules/ajv/lib/compile/errors.ts +0 -184
  308. package/dist/node_modules/ajv/lib/compile/index.ts +0 -324
  309. package/dist/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
  310. package/dist/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -277
  311. package/dist/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
  312. package/dist/node_modules/ajv/lib/compile/names.ts +0 -27
  313. package/dist/node_modules/ajv/lib/compile/ref_error.ts +0 -13
  314. package/dist/node_modules/ajv/lib/compile/resolve.ts +0 -149
  315. package/dist/node_modules/ajv/lib/compile/rules.ts +0 -50
  316. package/dist/node_modules/ajv/lib/compile/util.ts +0 -213
  317. package/dist/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
  318. package/dist/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
  319. package/dist/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
  320. package/dist/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
  321. package/dist/node_modules/ajv/lib/compile/validate/index.ts +0 -582
  322. package/dist/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
  323. package/dist/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
  324. package/dist/node_modules/ajv/lib/core.ts +0 -892
  325. package/dist/node_modules/ajv/lib/jtd.ts +0 -132
  326. package/dist/node_modules/ajv/lib/refs/data.json +0 -13
  327. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
  328. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
  329. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
  330. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
  331. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
  332. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  333. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
  334. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
  335. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
  336. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
  337. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
  338. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
  339. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  340. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  341. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  342. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
  343. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
  344. package/dist/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
  345. package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
  346. package/dist/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
  347. package/dist/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
  348. package/dist/node_modules/ajv/lib/runtime/equal.ts +0 -7
  349. package/dist/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
  350. package/dist/node_modules/ajv/lib/runtime/quote.ts +0 -31
  351. package/dist/node_modules/ajv/lib/runtime/re2.ts +0 -6
  352. package/dist/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
  353. package/dist/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
  354. package/dist/node_modules/ajv/lib/runtime/uri.ts +0 -6
  355. package/dist/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
  356. package/dist/node_modules/ajv/lib/standalone/index.ts +0 -100
  357. package/dist/node_modules/ajv/lib/standalone/instance.ts +0 -36
  358. package/dist/node_modules/ajv/lib/types/index.ts +0 -244
  359. package/dist/node_modules/ajv/lib/types/json-schema.ts +0 -187
  360. package/dist/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
  361. package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
  362. package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
  363. package/dist/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
  364. package/dist/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
  365. package/dist/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
  366. package/dist/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
  367. package/dist/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
  368. package/dist/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
  369. package/dist/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
  370. package/dist/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
  371. package/dist/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
  372. package/dist/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
  373. package/dist/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
  374. package/dist/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
  375. package/dist/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
  376. package/dist/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
  377. package/dist/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
  378. package/dist/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
  379. package/dist/node_modules/ajv/lib/vocabularies/code.ts +0 -168
  380. package/dist/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
  381. package/dist/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
  382. package/dist/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
  383. package/dist/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
  384. package/dist/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
  385. package/dist/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
  386. package/dist/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
  387. package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
  388. package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
  389. package/dist/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
  390. package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
  391. package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
  392. package/dist/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
  393. package/dist/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
  394. package/dist/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
  395. package/dist/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
  396. package/dist/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
  397. package/dist/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
  398. package/dist/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
  399. package/dist/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
  400. package/dist/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
  401. package/dist/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
  402. package/dist/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
  403. package/dist/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
  404. package/dist/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
  405. package/dist/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
  406. package/dist/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
  407. package/dist/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
  408. package/dist/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
  409. package/dist/node_modules/ajv/lib/vocabularies/next.ts +0 -8
  410. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
  411. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
  412. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
  413. package/dist/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
  414. package/dist/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
  415. package/dist/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
  416. package/dist/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
  417. package/dist/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
  418. package/dist/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
  419. package/dist/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
  420. package/dist/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
  421. package/dist/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
  422. package/dist/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
  423. package/dist/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -39
  424. package/dist/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
  425. package/dist/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
  426. package/dist/node_modules/ajv/package.json +0 -1
  427. package/dist/server/flow-models/action-handlers.d.ts +0 -26
  428. package/dist/server/flow-models/action-handlers.js +0 -209
  429. package/dist/server/flow-models/http-error-adapter.d.ts +0 -10
  430. package/dist/server/flow-models/http-error-adapter.js +0 -58
  431. package/dist/server/flow-models/mutate-executor.d.ts +0 -17
  432. package/dist/server/flow-models/mutate-executor.js +0 -309
  433. package/dist/server/flow-models/repository-internals/duplicate-helpers.d.ts +0 -12
  434. package/dist/server/flow-models/repository-internals/duplicate-helpers.js +0 -121
  435. package/dist/server/flow-models/repository-internals/ensure-lock.d.ts +0 -15
  436. package/dist/server/flow-models/repository-internals/ensure-lock.js +0 -117
  437. package/dist/server/flow-models/repository-internals/errors.d.ts +0 -21
  438. package/dist/server/flow-models/repository-internals/errors.js +0 -78
  439. package/dist/server/flow-models/schema-contribution-collector.d.ts +0 -28
  440. package/dist/server/flow-models/schema-contribution-collector.js +0 -238
  441. package/dist/server/flow-models/validation-facade.d.ts +0 -29
  442. package/dist/server/flow-models/validation-facade.js +0 -181
  443. package/dist/server/flow-schema-contributions/actions/aclCheck.d.ts +0 -10
  444. package/dist/server/flow-schema-contributions/actions/aclCheck.js +0 -46
  445. package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.d.ts +0 -10
  446. package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.js +0 -46
  447. package/dist/server/flow-schema-contributions/actions/actionLinkageRules.d.ts +0 -10
  448. package/dist/server/flow-schema-contributions/actions/actionLinkageRules.js +0 -48
  449. package/dist/server/flow-schema-contributions/actions/confirm.d.ts +0 -10
  450. package/dist/server/flow-schema-contributions/actions/confirm.js +0 -73
  451. package/dist/server/flow-schema-contributions/actions/customVariable.d.ts +0 -10
  452. package/dist/server/flow-schema-contributions/actions/customVariable.js +0 -76
  453. package/dist/server/flow-schema-contributions/actions/dataScope.d.ts +0 -10
  454. package/dist/server/flow-schema-contributions/actions/dataScope.js +0 -79
  455. package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.d.ts +0 -10
  456. package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.js +0 -62
  457. package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.d.ts +0 -10
  458. package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.js +0 -62
  459. package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.d.ts +0 -10
  460. package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.js +0 -80
  461. package/dist/server/flow-schema-contributions/actions/formAssignRules.d.ts +0 -10
  462. package/dist/server/flow-schema-contributions/actions/formAssignRules.js +0 -62
  463. package/dist/server/flow-schema-contributions/actions/index.d.ts +0 -31
  464. package/dist/server/flow-schema-contributions/actions/index.js +0 -117
  465. package/dist/server/flow-schema-contributions/actions/layout.d.ts +0 -10
  466. package/dist/server/flow-schema-contributions/actions/layout.js +0 -68
  467. package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.d.ts +0 -10
  468. package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.js +0 -50
  469. package/dist/server/flow-schema-contributions/actions/navigateToURL.d.ts +0 -10
  470. package/dist/server/flow-schema-contributions/actions/navigateToURL.js +0 -82
  471. package/dist/server/flow-schema-contributions/actions/openView.d.ts +0 -10
  472. package/dist/server/flow-schema-contributions/actions/openView.js +0 -68
  473. package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.d.ts +0 -10
  474. package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.js +0 -56
  475. package/dist/server/flow-schema-contributions/actions/runjs.d.ts +0 -10
  476. package/dist/server/flow-schema-contributions/actions/runjs.js +0 -55
  477. package/dist/server/flow-schema-contributions/actions/setTargetDataScope.d.ts +0 -10
  478. package/dist/server/flow-schema-contributions/actions/setTargetDataScope.js +0 -59
  479. package/dist/server/flow-schema-contributions/actions/showMessage.d.ts +0 -10
  480. package/dist/server/flow-schema-contributions/actions/showMessage.js +0 -69
  481. package/dist/server/flow-schema-contributions/actions/showNotification.d.ts +0 -10
  482. package/dist/server/flow-schema-contributions/actions/showNotification.js +0 -76
  483. package/dist/server/flow-schema-contributions/actions/sortingRule.d.ts +0 -10
  484. package/dist/server/flow-schema-contributions/actions/sortingRule.js +0 -67
  485. package/dist/server/flow-schema-contributions/field-models.d.ts +0 -12
  486. package/dist/server/flow-schema-contributions/field-models.js +0 -693
  487. package/dist/server/flow-schema-contributions/index.d.ts +0 -13
  488. package/dist/server/flow-schema-contributions/index.js +0 -64
  489. package/dist/server/flow-schema-contributions/models/ActionBulkEditModel.d.ts +0 -10
  490. package/dist/server/flow-schema-contributions/models/ActionBulkEditModel.js +0 -382
  491. package/dist/server/flow-schema-contributions/models/ActionBulkUpdateModel.d.ts +0 -10
  492. package/dist/server/flow-schema-contributions/models/ActionBulkUpdateModel.js +0 -169
  493. package/dist/server/flow-schema-contributions/models/ActionCustomRequestModel.d.ts +0 -11
  494. package/dist/server/flow-schema-contributions/models/ActionCustomRequestModel.js +0 -115
  495. package/dist/server/flow-schema-contributions/models/ActionDuplicateModel.d.ts +0 -10
  496. package/dist/server/flow-schema-contributions/models/ActionDuplicateModel.js +0 -169
  497. package/dist/server/flow-schema-contributions/models/ActionExportModel.d.ts +0 -10
  498. package/dist/server/flow-schema-contributions/models/ActionExportModel.js +0 -141
  499. package/dist/server/flow-schema-contributions/models/ActionImportModel.d.ts +0 -10
  500. package/dist/server/flow-schema-contributions/models/ActionImportModel.js +0 -122
  501. package/dist/server/flow-schema-contributions/models/ActionModel.d.ts +0 -10
  502. package/dist/server/flow-schema-contributions/models/ActionModel.js +0 -202
  503. package/dist/server/flow-schema-contributions/models/AddChildActionModel.d.ts +0 -10
  504. package/dist/server/flow-schema-contributions/models/AddChildActionModel.js +0 -47
  505. package/dist/server/flow-schema-contributions/models/AddNewActionModel.d.ts +0 -10
  506. package/dist/server/flow-schema-contributions/models/AddNewActionModel.js +0 -93
  507. package/dist/server/flow-schema-contributions/models/AssignFormGridModel.d.ts +0 -10
  508. package/dist/server/flow-schema-contributions/models/AssignFormGridModel.js +0 -82
  509. package/dist/server/flow-schema-contributions/models/AssignFormItemModel.d.ts +0 -10
  510. package/dist/server/flow-schema-contributions/models/AssignFormItemModel.js +0 -80
  511. package/dist/server/flow-schema-contributions/models/AssignFormModel.d.ts +0 -10
  512. package/dist/server/flow-schema-contributions/models/AssignFormModel.js +0 -122
  513. package/dist/server/flow-schema-contributions/models/BasePageTabModel.d.ts +0 -10
  514. package/dist/server/flow-schema-contributions/models/BasePageTabModel.js +0 -71
  515. package/dist/server/flow-schema-contributions/models/BlockGridCardModel.d.ts +0 -10
  516. package/dist/server/flow-schema-contributions/models/BlockGridCardModel.js +0 -449
  517. package/dist/server/flow-schema-contributions/models/BlockGridModel.d.ts +0 -10
  518. package/dist/server/flow-schema-contributions/models/BlockGridModel.js +0 -81
  519. package/dist/server/flow-schema-contributions/models/BlockIframeModel.d.ts +0 -10
  520. package/dist/server/flow-schema-contributions/models/BlockIframeModel.js +0 -143
  521. package/dist/server/flow-schema-contributions/models/BlockListModel.d.ts +0 -10
  522. package/dist/server/flow-schema-contributions/models/BlockListModel.js +0 -435
  523. package/dist/server/flow-schema-contributions/models/BlockMarkdownModel.d.ts +0 -10
  524. package/dist/server/flow-schema-contributions/models/BlockMarkdownModel.js +0 -108
  525. package/dist/server/flow-schema-contributions/models/BlockWorkbenchModel.d.ts +0 -10
  526. package/dist/server/flow-schema-contributions/models/BlockWorkbenchModel.js +0 -173
  527. package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.d.ts +0 -10
  528. package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.js +0 -47
  529. package/dist/server/flow-schema-contributions/models/ChildPageModel.d.ts +0 -10
  530. package/dist/server/flow-schema-contributions/models/ChildPageModel.js +0 -106
  531. package/dist/server/flow-schema-contributions/models/ChildPageTabModel.d.ts +0 -10
  532. package/dist/server/flow-schema-contributions/models/ChildPageTabModel.js +0 -114
  533. package/dist/server/flow-schema-contributions/models/CommentsModel.d.ts +0 -10
  534. package/dist/server/flow-schema-contributions/models/CommentsModel.js +0 -255
  535. package/dist/server/flow-schema-contributions/models/CreateFormModel.d.ts +0 -10
  536. package/dist/server/flow-schema-contributions/models/CreateFormModel.js +0 -54
  537. package/dist/server/flow-schema-contributions/models/DataVisualizationModel.d.ts +0 -10
  538. package/dist/server/flow-schema-contributions/models/DataVisualizationModel.js +0 -240
  539. package/dist/server/flow-schema-contributions/models/DeleteActionModel.d.ts +0 -10
  540. package/dist/server/flow-schema-contributions/models/DeleteActionModel.js +0 -47
  541. package/dist/server/flow-schema-contributions/models/DetailsBlockModel.d.ts +0 -10
  542. package/dist/server/flow-schema-contributions/models/DetailsBlockModel.js +0 -179
  543. package/dist/server/flow-schema-contributions/models/DetailsGridModel.d.ts +0 -10
  544. package/dist/server/flow-schema-contributions/models/DetailsGridModel.js +0 -82
  545. package/dist/server/flow-schema-contributions/models/DetailsItemModel.d.ts +0 -10
  546. package/dist/server/flow-schema-contributions/models/DetailsItemModel.js +0 -77
  547. package/dist/server/flow-schema-contributions/models/EditActionModel.d.ts +0 -10
  548. package/dist/server/flow-schema-contributions/models/EditActionModel.js +0 -93
  549. package/dist/server/flow-schema-contributions/models/EditFormModel.d.ts +0 -10
  550. package/dist/server/flow-schema-contributions/models/EditFormModel.js +0 -103
  551. package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.d.ts +0 -10
  552. package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.js +0 -47
  553. package/dist/server/flow-schema-contributions/models/FieldAttachmentUrlModel.d.ts +0 -10
  554. package/dist/server/flow-schema-contributions/models/FieldAttachmentUrlModel.js +0 -87
  555. package/dist/server/flow-schema-contributions/models/FieldCodeModel.d.ts +0 -10
  556. package/dist/server/flow-schema-contributions/models/FieldCodeModel.js +0 -99
  557. package/dist/server/flow-schema-contributions/models/FieldFormulaModel.d.ts +0 -10
  558. package/dist/server/flow-schema-contributions/models/FieldFormulaModel.js +0 -152
  559. package/dist/server/flow-schema-contributions/models/FieldMarkdownVditorModel.d.ts +0 -10
  560. package/dist/server/flow-schema-contributions/models/FieldMarkdownVditorModel.js +0 -92
  561. package/dist/server/flow-schema-contributions/models/FieldSequenceModel.d.ts +0 -10
  562. package/dist/server/flow-schema-contributions/models/FieldSequenceModel.js +0 -60
  563. package/dist/server/flow-schema-contributions/models/FieldSortModel.d.ts +0 -10
  564. package/dist/server/flow-schema-contributions/models/FieldSortModel.js +0 -87
  565. package/dist/server/flow-schema-contributions/models/FileManagerModel.d.ts +0 -10
  566. package/dist/server/flow-schema-contributions/models/FileManagerModel.js +0 -115
  567. package/dist/server/flow-schema-contributions/models/FilterActionModel.d.ts +0 -10
  568. package/dist/server/flow-schema-contributions/models/FilterActionModel.js +0 -57
  569. package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.d.ts +0 -10
  570. package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.js +0 -155
  571. package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.d.ts +0 -10
  572. package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.js +0 -85
  573. package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.d.ts +0 -10
  574. package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.js +0 -89
  575. package/dist/server/flow-schema-contributions/models/FilterFormGridModel.d.ts +0 -10
  576. package/dist/server/flow-schema-contributions/models/FilterFormGridModel.js +0 -82
  577. package/dist/server/flow-schema-contributions/models/FilterFormItemModel.d.ts +0 -10
  578. package/dist/server/flow-schema-contributions/models/FilterFormItemModel.js +0 -77
  579. package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.d.ts +0 -10
  580. package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.js +0 -108
  581. package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.d.ts +0 -10
  582. package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.js +0 -87
  583. package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.d.ts +0 -10
  584. package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.js +0 -87
  585. package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.d.ts +0 -10
  586. package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.js +0 -78
  587. package/dist/server/flow-schema-contributions/models/FormBlockModel.d.ts +0 -10
  588. package/dist/server/flow-schema-contributions/models/FormBlockModel.js +0 -45
  589. package/dist/server/flow-schema-contributions/models/FormGridModel.d.ts +0 -10
  590. package/dist/server/flow-schema-contributions/models/FormGridModel.js +0 -67
  591. package/dist/server/flow-schema-contributions/models/FormItemModel.d.ts +0 -10
  592. package/dist/server/flow-schema-contributions/models/FormItemModel.js +0 -77
  593. package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.d.ts +0 -10
  594. package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.js +0 -87
  595. package/dist/server/flow-schema-contributions/models/JSActionModel.d.ts +0 -10
  596. package/dist/server/flow-schema-contributions/models/JSActionModel.js +0 -65
  597. package/dist/server/flow-schema-contributions/models/JSBlockModel.d.ts +0 -10
  598. package/dist/server/flow-schema-contributions/models/JSBlockModel.js +0 -90
  599. package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.d.ts +0 -10
  600. package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.js +0 -47
  601. package/dist/server/flow-schema-contributions/models/JSColumnModel.d.ts +0 -10
  602. package/dist/server/flow-schema-contributions/models/JSColumnModel.js +0 -100
  603. package/dist/server/flow-schema-contributions/models/JSFormActionModel.d.ts +0 -10
  604. package/dist/server/flow-schema-contributions/models/JSFormActionModel.js +0 -47
  605. package/dist/server/flow-schema-contributions/models/JSItemModel.d.ts +0 -10
  606. package/dist/server/flow-schema-contributions/models/JSItemModel.js +0 -87
  607. package/dist/server/flow-schema-contributions/models/JSRecordActionModel.d.ts +0 -10
  608. package/dist/server/flow-schema-contributions/models/JSRecordActionModel.js +0 -47
  609. package/dist/server/flow-schema-contributions/models/LinkActionModel.d.ts +0 -10
  610. package/dist/server/flow-schema-contributions/models/LinkActionModel.js +0 -47
  611. package/dist/server/flow-schema-contributions/models/MapModel.d.ts +0 -10
  612. package/dist/server/flow-schema-contributions/models/MapModel.js +0 -427
  613. package/dist/server/flow-schema-contributions/models/PageModel.d.ts +0 -10
  614. package/dist/server/flow-schema-contributions/models/PageModel.js +0 -159
  615. package/dist/server/flow-schema-contributions/models/PageTabModel.d.ts +0 -10
  616. package/dist/server/flow-schema-contributions/models/PageTabModel.js +0 -69
  617. package/dist/server/flow-schema-contributions/models/PopupActionModel.d.ts +0 -10
  618. package/dist/server/flow-schema-contributions/models/PopupActionModel.js +0 -92
  619. package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.d.ts +0 -10
  620. package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.js +0 -119
  621. package/dist/server/flow-schema-contributions/models/RefreshActionModel.d.ts +0 -10
  622. package/dist/server/flow-schema-contributions/models/RefreshActionModel.js +0 -47
  623. package/dist/server/flow-schema-contributions/models/RootPageModel.d.ts +0 -10
  624. package/dist/server/flow-schema-contributions/models/RootPageModel.js +0 -124
  625. package/dist/server/flow-schema-contributions/models/RootPageTabModel.d.ts +0 -10
  626. package/dist/server/flow-schema-contributions/models/RootPageTabModel.js +0 -69
  627. package/dist/server/flow-schema-contributions/models/RouteModel.d.ts +0 -10
  628. package/dist/server/flow-schema-contributions/models/RouteModel.js +0 -121
  629. package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.d.ts +0 -10
  630. package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.js +0 -93
  631. package/dist/server/flow-schema-contributions/models/TableBlockModel.d.ts +0 -10
  632. package/dist/server/flow-schema-contributions/models/TableBlockModel.js +0 -254
  633. package/dist/server/flow-schema-contributions/models/TableColumnModel.d.ts +0 -10
  634. package/dist/server/flow-schema-contributions/models/TableColumnModel.js +0 -77
  635. package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.d.ts +0 -10
  636. package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.js +0 -66
  637. package/dist/server/flow-schema-contributions/models/UiTemplatesModel.d.ts +0 -10
  638. package/dist/server/flow-schema-contributions/models/UiTemplatesModel.js +0 -130
  639. package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.d.ts +0 -10
  640. package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.js +0 -173
  641. package/dist/server/flow-schema-contributions/models/ViewActionModel.d.ts +0 -10
  642. package/dist/server/flow-schema-contributions/models/ViewActionModel.js +0 -123
  643. package/dist/server/flow-schema-contributions/models/index.d.ts +0 -71
  644. package/dist/server/flow-schema-contributions/models/index.js +0 -371
  645. package/dist/server/flow-schema-contributions/shared.d.ts +0 -501
  646. package/dist/server/flow-schema-contributions/shared.js +0 -1649
  647. package/dist/server/flow-schema-registry/FlowSchemaRegistry.d.ts +0 -154
  648. package/dist/server/flow-schema-registry/FlowSchemaRegistry.js +0 -1424
  649. package/dist/server/flow-schema-registry/flow-schema-registry/fieldBinding.d.ts +0 -32
  650. package/dist/server/flow-schema-registry/flow-schema-registry/fieldBinding.js +0 -159
  651. package/dist/server/flow-schema-registry/flow-schema-registry/modelPatches.d.ts +0 -16
  652. package/dist/server/flow-schema-registry/flow-schema-registry/modelPatches.js +0 -226
  653. package/dist/server/flow-schema-registry/flow-schema-registry/schemaInference.d.ts +0 -17
  654. package/dist/server/flow-schema-registry/flow-schema-registry/schemaInference.js +0 -204
  655. package/dist/server/flow-schema-registry/flow-schema-registry/utils.d.ts +0 -25
  656. package/dist/server/flow-schema-registry/flow-schema-registry/utils.js +0 -278
  657. package/dist/server/flow-schema-registry/index.js +0 -32
  658. package/dist/server/flow-schema-registry/types.d.ts +0 -244
  659. package/dist/server/flow-schema-service.d.ts +0 -87
  660. package/dist/server/flow-schema-service.js +0 -963
  661. /package/dist/server/{flow-schema-registry → flow-surfaces}/types.js +0 -0
@@ -1,1649 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- var shared_exports = {};
28
- __export(shared_exports, {
29
- aclCheckRefreshParamsSchema: () => aclCheckRefreshParamsSchema,
30
- actionButtonGeneralStepParamsSchema: () => actionButtonGeneralStepParamsSchema,
31
- actionButtonSettingsStepParamsSchema: () => actionButtonSettingsStepParamsSchema,
32
- assignFormItemStepParamsSchema: () => assignFormItemStepParamsSchema,
33
- childPageSettingsStepParamsSchema: () => childPageSettingsStepParamsSchema,
34
- collectionActionUses: () => collectionActionUses,
35
- collectionResourceInitSchema: () => collectionResourceInitSchema,
36
- collectionResourceSettingsStepParamsSchema: () => collectionResourceSettingsStepParamsSchema,
37
- confirmStepParamsSchema: () => confirmStepParamsSchema,
38
- coreBlockGridItemUses: () => coreBlockGridItemUses,
39
- createActionStepParamsSchema: () => createActionStepParamsSchema,
40
- createAssociatedCollectionPattern: () => createAssociatedCollectionPattern,
41
- createCollectionResourceInit: () => createCollectionResourceInit,
42
- createCollectionResourceStepParams: () => createCollectionResourceStepParams,
43
- createCurrentRecordCollectionPattern: () => createCurrentRecordCollectionPattern,
44
- createFieldBoundStepParamsSchema: () => createFieldBoundStepParamsSchema,
45
- createFieldModelSchemaContribution: () => createFieldModelSchemaContribution,
46
- createFieldModelSkeleton: () => createFieldModelSkeleton,
47
- createFieldModelStepParamsSchema: () => createFieldModelStepParamsSchema,
48
- createFormBlockCommonPatterns: () => createFormBlockCommonPatterns,
49
- createFormBlockDynamicHints: () => createFormBlockDynamicHints,
50
- createFormBlockMinimalExample: () => createFormBlockMinimalExample,
51
- createFormBlockSkeleton: () => createFormBlockSkeleton,
52
- createFormBlockSubModelSlots: () => createFormBlockSubModelSlots,
53
- createFormGridDynamicHints: () => createFormGridDynamicHints,
54
- createGridLayoutDocs: () => createGridLayoutDocs,
55
- createGridLayoutStepParamsSchema: () => createGridLayoutStepParamsSchema,
56
- createPopupActionExample: () => createPopupActionExample,
57
- createPopupActionOpenViewParams: () => createPopupActionOpenViewParams,
58
- createPopupActionPattern: () => createPopupActionPattern,
59
- createPopupActionStepParams: () => createPopupActionStepParams,
60
- createPopupBlockGrid: () => createPopupBlockGrid,
61
- createPopupChildPageTree: () => createPopupChildPageTree,
62
- createPopupPageSlotSchema: () => createPopupPageSlotSchema,
63
- createRuntimeFieldDynamicHint: () => createRuntimeFieldDynamicHint,
64
- createRuntimeFieldModelSlotSchema: () => createRuntimeFieldModelSlotSchema,
65
- dataScopeParamsSchema: () => dataScopeParamsSchema,
66
- defaultValueStepParamsSchema: () => defaultValueStepParamsSchema,
67
- deleteActionSettingsStepParamsSchema: () => deleteActionSettingsStepParamsSchema,
68
- descriptionStepParamsSchema: () => descriptionStepParamsSchema,
69
- detailItemStepParamsSchema: () => detailItemStepParamsSchema,
70
- detailsGridItemUses: () => detailsGridItemUses,
71
- emptyObjectSchema: () => emptyObjectSchema,
72
- expandCollapseActionSettingsStepParamsSchema: () => expandCollapseActionSettingsStepParamsSchema,
73
- fieldBindingInitSchema: () => fieldBindingInitSchema,
74
- filterActionSettingsStepParamsSchema: () => filterActionSettingsStepParamsSchema,
75
- filterFieldMetadataSchema: () => filterFieldMetadataSchema,
76
- filterFormActionUses: () => filterFormActionUses,
77
- filterFormCollapseSettingsStepParamsSchema: () => filterFormCollapseSettingsStepParamsSchema,
78
- filterFormGridItemUses: () => filterFormGridItemUses,
79
- filterFormItemInitStepParamsSchema: () => filterFormItemInitStepParamsSchema,
80
- filterFormItemStepParamsSchema: () => filterFormItemStepParamsSchema,
81
- formBlockActionUses: () => formBlockActionUses,
82
- formBlockAntiPatterns: () => formBlockAntiPatterns,
83
- formBlockBaseStepParamsSchema: () => formBlockBaseStepParamsSchema,
84
- formGridItemUses: () => formGridItemUses,
85
- formItemStepParamsSchema: () => formItemStepParamsSchema,
86
- formSubmitSettingsStepParamsSchema: () => formSubmitSettingsStepParamsSchema,
87
- genericFilterSchema: () => genericFilterSchema,
88
- genericModelNodeSchema: () => genericModelNodeSchema,
89
- gridRowOrderSchema: () => gridRowOrderSchema,
90
- gridRowsSchema: () => gridRowsSchema,
91
- gridSizesSchema: () => gridSizesSchema,
92
- labelStepParamsSchema: () => labelStepParamsSchema,
93
- layoutParamsSchema: () => layoutParamsSchema,
94
- linkActionSettingsStepParamsSchema: () => linkActionSettingsStepParamsSchema,
95
- linkageRuleValueSchema: () => linkageRuleValueSchema,
96
- linkageRulesRefreshParamsSchema: () => linkageRulesRefreshParamsSchema,
97
- openViewParamsSchema: () => openViewParamsSchema,
98
- pageTabSettingsStepParamsSchema: () => pageTabSettingsStepParamsSchema,
99
- pageTabUses: () => pageTabUses,
100
- popupActionAntiPatterns: () => popupActionAntiPatterns,
101
- popupActionSettingsStepParamsSchema: () => popupActionSettingsStepParamsSchema,
102
- publicBlockRootUses: () => publicBlockRootUses,
103
- recordActionUses: () => recordActionUses,
104
- refreshActionSettingsStepParamsSchema: () => refreshActionSettingsStepParamsSchema,
105
- runJsActionSettingsStepParamsSchema: () => runJsActionSettingsStepParamsSchema,
106
- showLabelStepParamsSchema: () => showLabelStepParamsSchema,
107
- sortingRuleParamsSchema: () => sortingRuleParamsSchema,
108
- tableColumnEditableStepParamsSchema: () => tableColumnEditableStepParamsSchema,
109
- tableColumnSorterStepParamsSchema: () => tableColumnSorterStepParamsSchema,
110
- tableColumnStepParamsSchema: () => tableColumnStepParamsSchema,
111
- tableColumnUses: () => tableColumnUses,
112
- tableColumnWidthStepParamsSchema: () => tableColumnWidthStepParamsSchema,
113
- tooltipStepParamsSchema: () => tooltipStepParamsSchema
114
- });
115
- module.exports = __toCommonJS(shared_exports);
116
- const genericFilterSchemaId = "urn:nocobase:schema:plugin-flow-engine:generic-filter";
117
- const genericFilterSchema = {
118
- $id: genericFilterSchemaId,
119
- definitions: {
120
- filterCondition: {
121
- type: "object",
122
- properties: {
123
- path: {
124
- type: "string"
125
- },
126
- operator: {
127
- type: "string"
128
- },
129
- value: {},
130
- noValue: {
131
- type: "boolean"
132
- }
133
- },
134
- required: ["path"],
135
- additionalProperties: true,
136
- allOf: [
137
- {
138
- not: {
139
- required: ["logic"]
140
- }
141
- },
142
- {
143
- not: {
144
- required: ["items"]
145
- }
146
- }
147
- ]
148
- },
149
- filterGroup: {
150
- type: "object",
151
- properties: {
152
- logic: {
153
- type: "string",
154
- enum: ["$and", "$or"]
155
- },
156
- items: {
157
- type: "array",
158
- items: {
159
- oneOf: [
160
- { $ref: `${genericFilterSchemaId}#/definitions/filterCondition` },
161
- { $ref: `${genericFilterSchemaId}#/definitions/filterGroup` }
162
- ]
163
- }
164
- }
165
- },
166
- required: ["logic", "items"],
167
- additionalProperties: true,
168
- allOf: [
169
- {
170
- not: {
171
- required: ["path"]
172
- }
173
- },
174
- {
175
- not: {
176
- required: ["operator"]
177
- }
178
- },
179
- {
180
- not: {
181
- required: ["value"]
182
- }
183
- },
184
- {
185
- not: {
186
- required: ["noValue"]
187
- }
188
- }
189
- ]
190
- }
191
- },
192
- type: "object",
193
- properties: {
194
- logic: {
195
- type: "string",
196
- enum: ["$and", "$or"]
197
- },
198
- items: {
199
- type: "array",
200
- items: {
201
- oneOf: [
202
- { $ref: `${genericFilterSchemaId}#/definitions/filterCondition` },
203
- { $ref: `${genericFilterSchemaId}#/definitions/filterGroup` }
204
- ]
205
- }
206
- }
207
- },
208
- required: ["logic", "items"],
209
- additionalProperties: true,
210
- allOf: [
211
- {
212
- not: {
213
- required: ["path"]
214
- }
215
- },
216
- {
217
- not: {
218
- required: ["operator"]
219
- }
220
- },
221
- {
222
- not: {
223
- required: ["value"]
224
- }
225
- },
226
- {
227
- not: {
228
- required: ["noValue"]
229
- }
230
- }
231
- ]
232
- };
233
- const genericModelNodeSchema = {
234
- type: "object",
235
- required: ["uid", "use"],
236
- properties: {
237
- uid: { type: "string" },
238
- use: { type: "string" }
239
- },
240
- additionalProperties: true
241
- };
242
- const emptyObjectSchema = {
243
- type: "object",
244
- additionalProperties: false
245
- };
246
- const linkageRuleValueSchema = {
247
- type: "object",
248
- properties: {
249
- value: {
250
- type: "array",
251
- items: {
252
- type: "object",
253
- additionalProperties: true
254
- }
255
- }
256
- },
257
- additionalProperties: false
258
- };
259
- const layoutParamsSchema = {
260
- type: "object",
261
- properties: {
262
- layout: {
263
- type: "string",
264
- enum: ["vertical", "horizontal"]
265
- },
266
- labelAlign: {
267
- type: "string",
268
- enum: ["left", "right"]
269
- },
270
- labelWidth: {
271
- type: ["number", "string", "null"]
272
- },
273
- labelWrap: {
274
- type: "boolean"
275
- },
276
- colon: {
277
- type: "boolean"
278
- }
279
- },
280
- required: ["layout"],
281
- additionalProperties: false
282
- };
283
- const dataScopeParamsSchema = {
284
- type: "object",
285
- properties: {
286
- filter: genericFilterSchema
287
- },
288
- additionalProperties: false
289
- };
290
- const sortingRuleParamsSchema = {
291
- type: "object",
292
- properties: {
293
- sort: {
294
- type: "array",
295
- items: {
296
- type: "object",
297
- properties: {
298
- field: { type: "string" },
299
- direction: {
300
- type: "string",
301
- enum: ["asc", "desc"]
302
- }
303
- },
304
- required: ["field", "direction"],
305
- additionalProperties: false
306
- }
307
- }
308
- },
309
- additionalProperties: false
310
- };
311
- const aclCheckRefreshParamsSchema = {
312
- type: "object",
313
- properties: {
314
- strategy: {
315
- type: "string",
316
- enum: ["default", "formItem"]
317
- }
318
- },
319
- additionalProperties: false
320
- };
321
- const linkageRulesRefreshParamsSchema = {
322
- type: "object",
323
- properties: {
324
- actionName: { type: "string" },
325
- flowKey: { type: "string" },
326
- stepKey: { type: "string" }
327
- },
328
- required: ["actionName", "flowKey"],
329
- additionalProperties: false
330
- };
331
- const openViewParamsSchema = {
332
- type: "object",
333
- properties: {
334
- uid: { type: "string" },
335
- mode: {
336
- type: "string",
337
- enum: ["drawer", "dialog", "embed"]
338
- },
339
- size: {
340
- type: "string",
341
- enum: ["small", "medium", "large"]
342
- },
343
- pageModelClass: {
344
- type: "string",
345
- enum: ["ChildPageModel", "RootPageModel"]
346
- },
347
- filterByTk: { type: ["string", "number", "object"] },
348
- sourceId: { type: ["string", "number"] },
349
- dataSourceKey: { type: "string" },
350
- collectionName: { type: "string" },
351
- associationName: { type: "string" },
352
- preventClose: { type: "boolean" },
353
- navigation: { type: "boolean" },
354
- tabUid: { type: "string" }
355
- },
356
- additionalProperties: true
357
- };
358
- const gridRowsSchema = {
359
- type: "object",
360
- description: "Map of row ids to column definitions. Each row value is a string[][] where every inner array lists the child model UIDs rendered inside one column.",
361
- additionalProperties: {
362
- type: "array",
363
- items: {
364
- type: "array",
365
- items: {
366
- type: "string"
367
- }
368
- }
369
- }
370
- };
371
- const gridSizesSchema = {
372
- type: "object",
373
- description: "Map of row ids to column widths. Each width array uses the 24-column grid system, for example [12, 12] or [8, 8, 8].",
374
- additionalProperties: {
375
- type: "array",
376
- items: {
377
- type: "number"
378
- }
379
- }
380
- };
381
- const gridRowOrderSchema = {
382
- type: "array",
383
- description: "Optional explicit row order. When omitted, the persisted row key order is used.",
384
- items: {
385
- type: "string"
386
- }
387
- };
388
- function createGridLayoutStepParamsSchema() {
389
- return {
390
- type: "object",
391
- properties: {
392
- gridSettings: {
393
- type: "object",
394
- properties: {
395
- grid: {
396
- type: "object",
397
- description: "Persisted multi-row, multi-column grid layout.",
398
- properties: {
399
- rows: gridRowsSchema,
400
- sizes: gridSizesSchema,
401
- rowOrder: gridRowOrderSchema
402
- },
403
- additionalProperties: false
404
- }
405
- },
406
- additionalProperties: true
407
- }
408
- },
409
- additionalProperties: true
410
- };
411
- }
412
- function createGridLayoutStepParamsValue(rows, sizes, rowOrder) {
413
- return {
414
- gridSettings: {
415
- grid: {
416
- rows,
417
- sizes,
418
- rowOrder
419
- }
420
- }
421
- };
422
- }
423
- function createGridLayoutItems(itemUses, prefix, count) {
424
- const uses = itemUses.length > 0 ? itemUses : ["FlowModel"];
425
- return Array.from({ length: count }, (_, index) => ({
426
- uid: `${prefix}-item-${index + 1}`,
427
- use: uses[index % uses.length]
428
- }));
429
- }
430
- function createGridLayoutDocs(options) {
431
- const minimalItems = createGridLayoutItems(options.itemUses, `${options.prefix}-minimal`, 1);
432
- const standardItems = createGridLayoutItems(options.itemUses, `${options.prefix}-standard`, 5);
433
- const customSizeItems = createGridLayoutItems(options.itemUses, `${options.prefix}-sizes`, 5);
434
- const minimalRows = {
435
- rowMain: [[minimalItems[0].uid]]
436
- };
437
- const standardRows = {
438
- rowTop: [[standardItems[0].uid], [standardItems[1].uid]],
439
- rowBottom: [[standardItems[2].uid], [standardItems[3].uid], [standardItems[4].uid]]
440
- };
441
- const customSizeRows = {
442
- rowTop: [[customSizeItems[0].uid], [customSizeItems[1].uid]],
443
- rowBottom: [[customSizeItems[2].uid], [customSizeItems[3].uid], [customSizeItems[4].uid]]
444
- };
445
- return {
446
- minimalExample: {
447
- uid: `${options.prefix}-grid`,
448
- use: options.use,
449
- stepParams: createGridLayoutStepParamsValue(minimalRows, { rowMain: [24] }, ["rowMain"]),
450
- subModels: {
451
- items: minimalItems
452
- }
453
- },
454
- commonPatterns: [
455
- {
456
- title: "Single row with one column",
457
- description: "Use one row with a single 24-column slot when the grid only needs one child model.",
458
- snippet: {
459
- use: options.use,
460
- stepParams: createGridLayoutStepParamsValue(minimalRows, { rowMain: [24] }, ["rowMain"]),
461
- subModels: {
462
- items: minimalItems
463
- }
464
- }
465
- },
466
- {
467
- title: "Two rows with 2 + 3 columns",
468
- description: "The first row has 2 columns and the second row has 3 columns with equal widths.",
469
- snippet: {
470
- use: options.use,
471
- stepParams: createGridLayoutStepParamsValue(
472
- standardRows,
473
- {
474
- rowTop: [12, 12],
475
- rowBottom: [8, 8, 8]
476
- },
477
- ["rowTop", "rowBottom"]
478
- ),
479
- subModels: {
480
- items: standardItems
481
- }
482
- }
483
- },
484
- {
485
- title: "Two rows with custom column sizes",
486
- description: "Use sizes to express non-equal column widths while keeping the rows definition stable.",
487
- snippet: {
488
- use: options.use,
489
- stepParams: createGridLayoutStepParamsValue(
490
- customSizeRows,
491
- {
492
- rowTop: [8, 16],
493
- rowBottom: [6, 10, 8]
494
- },
495
- ["rowTop", "rowBottom"]
496
- ),
497
- subModels: {
498
- items: customSizeItems
499
- }
500
- }
501
- }
502
- ],
503
- dynamicHints: options.dynamicHints || []
504
- };
505
- }
506
- const publicBlockRootUses = [
507
- "CreateFormModel",
508
- "DetailsBlockModel",
509
- "EditFormModel",
510
- "FilterFormBlockModel",
511
- "JSBlockModel",
512
- "TableBlockModel"
513
- ];
514
- const pageTabUses = ["RootPageTabModel", "PageTabModel"];
515
- const tableColumnUses = [
516
- "TableColumnModel",
517
- "TableActionsColumnModel",
518
- "JSColumnModel",
519
- "TableCustomColumnModel"
520
- ];
521
- const coreBlockGridItemUses = [...publicBlockRootUses];
522
- const collectionActionUses = [
523
- "AddNewActionModel",
524
- "BulkDeleteActionModel",
525
- "ExpandCollapseActionModel",
526
- "FilterActionModel",
527
- "JSCollectionActionModel",
528
- "LinkActionModel",
529
- "PopupCollectionActionModel",
530
- "RefreshActionModel"
531
- ];
532
- const recordActionUses = [
533
- "AddChildActionModel",
534
- "DeleteActionModel",
535
- "EditActionModel",
536
- "JSRecordActionModel",
537
- "LinkActionModel",
538
- "PopupCollectionActionModel",
539
- "UpdateRecordActionModel",
540
- "ViewActionModel"
541
- ];
542
- const formBlockActionUses = ["FormSubmitActionModel", "JSFormActionModel"];
543
- const filterFormActionUses = [
544
- "FilterFormSubmitActionModel",
545
- "FilterFormResetActionModel",
546
- "FilterFormCollapseActionModel",
547
- "FilterFormJSActionModel"
548
- ];
549
- const formGridItemUses = ["FormItemModel", "FormAssociationItemModel", "JSItemModel"];
550
- const detailsGridItemUses = ["DetailsItemModel"];
551
- const filterFormGridItemUses = ["FilterFormItemModel", "FilterFormCustomFieldModel"];
552
- const fieldBindingInitSchema = {
553
- type: "object",
554
- properties: {
555
- dataSourceKey: { type: "string" },
556
- collectionName: { type: "string" },
557
- fieldPath: { type: "string" },
558
- associationPathName: { type: "string" }
559
- },
560
- required: ["dataSourceKey", "collectionName", "fieldPath"],
561
- additionalProperties: true
562
- };
563
- const filterFieldMetadataSchema = {
564
- type: "object",
565
- properties: {
566
- name: { type: "string" },
567
- title: { type: "string" },
568
- interface: { type: "string" },
569
- type: { type: "string" }
570
- },
571
- additionalProperties: true
572
- };
573
- function createRuntimeFieldModelSlotSchema(fieldBindingContext, description = "Field renderer model is resolved from runtime field bindings.") {
574
- return {
575
- type: "object",
576
- dynamic: true,
577
- fieldBindingContext,
578
- schema: genericModelNodeSchema,
579
- description
580
- };
581
- }
582
- const showLabelStepParamsSchema = {
583
- type: "object",
584
- properties: {
585
- showLabel: { type: "boolean" }
586
- },
587
- additionalProperties: false
588
- };
589
- const labelStepParamsSchema = {
590
- type: "object",
591
- properties: {
592
- label: { type: "string" },
593
- title: { type: "string" }
594
- },
595
- additionalProperties: false
596
- };
597
- const tooltipStepParamsSchema = {
598
- type: "object",
599
- properties: {
600
- tooltip: { type: "string" }
601
- },
602
- additionalProperties: false
603
- };
604
- const descriptionStepParamsSchema = {
605
- type: "object",
606
- properties: {
607
- description: { type: "string" }
608
- },
609
- additionalProperties: false
610
- };
611
- const defaultValueStepParamsSchema = {
612
- type: "object",
613
- properties: {
614
- defaultValue: {}
615
- },
616
- additionalProperties: false
617
- };
618
- const tableColumnWidthStepParamsSchema = {
619
- type: "object",
620
- properties: {
621
- width: {
622
- type: "number"
623
- }
624
- },
625
- additionalProperties: false
626
- };
627
- const tableColumnEditableStepParamsSchema = {
628
- type: "object",
629
- properties: {
630
- editable: { type: "boolean" }
631
- },
632
- additionalProperties: false
633
- };
634
- const tableColumnSorterStepParamsSchema = {
635
- type: "object",
636
- properties: {
637
- sorter: { type: "boolean" }
638
- },
639
- additionalProperties: false
640
- };
641
- const filterFormItemInitStepParamsSchema = {
642
- type: "object",
643
- properties: {
644
- filterField: filterFieldMetadataSchema,
645
- defaultTargetUid: { type: "string" }
646
- },
647
- additionalProperties: true
648
- };
649
- const actionButtonGeneralStepParamsSchema = {
650
- type: "object",
651
- properties: {
652
- title: { type: "string" },
653
- tooltip: { type: "string" },
654
- type: {
655
- type: "string",
656
- enum: ["default", "primary", "dashed", "link", "text"]
657
- },
658
- danger: { type: "boolean" },
659
- icon: { type: ["string", "null"] },
660
- color: { type: "string" }
661
- },
662
- additionalProperties: true
663
- };
664
- const actionButtonSettingsStepParamsSchema = {
665
- type: "object",
666
- properties: {
667
- buttonSettings: {
668
- type: "object",
669
- properties: {
670
- general: actionButtonGeneralStepParamsSchema,
671
- linkageRules: linkageRuleValueSchema
672
- },
673
- additionalProperties: true
674
- }
675
- },
676
- additionalProperties: true
677
- };
678
- function createActionStepParamsSchema(extraProperties = {}) {
679
- return {
680
- type: "object",
681
- properties: {
682
- ...actionButtonSettingsStepParamsSchema.properties || {},
683
- ...extraProperties
684
- },
685
- additionalProperties: true
686
- };
687
- }
688
- const confirmStepParamsSchema = {
689
- type: "object",
690
- properties: {
691
- enable: { type: "boolean" },
692
- title: { type: "string" },
693
- content: { type: "string" }
694
- },
695
- additionalProperties: false
696
- };
697
- const popupActionSettingsStepParamsSchema = {
698
- type: "object",
699
- properties: {
700
- openView: openViewParamsSchema
701
- },
702
- additionalProperties: true
703
- };
704
- const runJsActionSettingsStepParamsSchema = {
705
- type: "object",
706
- properties: {
707
- runJs: {
708
- type: "object",
709
- properties: {
710
- version: { type: "string" },
711
- code: { type: "string" }
712
- },
713
- required: ["code"],
714
- additionalProperties: true
715
- }
716
- },
717
- additionalProperties: true
718
- };
719
- const deleteActionSettingsStepParamsSchema = {
720
- type: "object",
721
- properties: {
722
- confirm: confirmStepParamsSchema
723
- },
724
- additionalProperties: true
725
- };
726
- const refreshActionSettingsStepParamsSchema = {
727
- type: "object",
728
- properties: {
729
- refresh: {
730
- type: "object",
731
- additionalProperties: true
732
- }
733
- },
734
- additionalProperties: true
735
- };
736
- const expandCollapseActionSettingsStepParamsSchema = {
737
- type: "object",
738
- properties: {
739
- expandCollapse: {
740
- type: "object",
741
- additionalProperties: true
742
- }
743
- },
744
- additionalProperties: true
745
- };
746
- const filterActionSettingsStepParamsSchema = {
747
- type: "object",
748
- properties: {
749
- position: {
750
- type: "object",
751
- properties: {
752
- position: {
753
- type: "string",
754
- enum: ["left", "right"]
755
- }
756
- },
757
- additionalProperties: false
758
- },
759
- filterableFieldNames: {
760
- type: "object",
761
- properties: {
762
- filterableFieldNames: {
763
- type: "array",
764
- items: {
765
- type: "string"
766
- }
767
- }
768
- },
769
- additionalProperties: false
770
- },
771
- defaultFilter: {
772
- type: "object",
773
- properties: {
774
- defaultFilter: genericFilterSchema
775
- },
776
- additionalProperties: false
777
- }
778
- },
779
- additionalProperties: true
780
- };
781
- const linkActionSettingsStepParamsSchema = {
782
- type: "object",
783
- properties: {
784
- editLink: {
785
- type: "object",
786
- properties: {
787
- url: { type: "string" },
788
- searchParams: {
789
- type: "array",
790
- items: {
791
- type: "object",
792
- properties: {
793
- name: { type: "string" },
794
- value: { type: "string" }
795
- },
796
- additionalProperties: true
797
- }
798
- },
799
- openInNewWindow: { type: "boolean" }
800
- },
801
- required: ["url"],
802
- additionalProperties: true
803
- }
804
- },
805
- additionalProperties: true
806
- };
807
- const formSubmitSettingsStepParamsSchema = {
808
- type: "object",
809
- properties: {
810
- confirm: {
811
- type: "object",
812
- properties: {
813
- enable: { type: "boolean" },
814
- title: { type: "string" },
815
- content: { type: "string" }
816
- },
817
- additionalProperties: true
818
- },
819
- saveResource: {
820
- type: "object",
821
- additionalProperties: true
822
- },
823
- refreshAndClose: {
824
- type: "object",
825
- additionalProperties: true
826
- }
827
- },
828
- additionalProperties: true
829
- };
830
- const filterFormCollapseSettingsStepParamsSchema = {
831
- type: "object",
832
- properties: {
833
- toggle: {
834
- type: "object",
835
- properties: {
836
- collapsedRows: {
837
- type: "number"
838
- }
839
- },
840
- additionalProperties: false
841
- },
842
- defaultCollapsed: {
843
- type: "object",
844
- properties: {
845
- value: { type: "boolean" }
846
- },
847
- additionalProperties: false
848
- }
849
- },
850
- additionalProperties: true
851
- };
852
- const pageTabSettingsStepParamsSchema = {
853
- type: "object",
854
- properties: {
855
- pageTabSettings: {
856
- type: "object",
857
- properties: {
858
- tab: {
859
- type: "object",
860
- properties: {
861
- title: { type: "string" },
862
- documentTitle: { type: "string" },
863
- icon: { type: ["string", "null"] }
864
- },
865
- additionalProperties: false
866
- }
867
- },
868
- additionalProperties: true
869
- }
870
- },
871
- additionalProperties: true
872
- };
873
- const childPageSettingsStepParamsSchema = {
874
- type: "object",
875
- properties: {
876
- pageSettings: {
877
- type: "object",
878
- properties: {
879
- general: {
880
- type: "object",
881
- properties: {
882
- title: { type: "string" },
883
- documentTitle: { type: "string" },
884
- displayTitle: { type: "boolean" },
885
- enableTabs: { type: "boolean" }
886
- },
887
- additionalProperties: false
888
- }
889
- },
890
- additionalProperties: true
891
- }
892
- },
893
- additionalProperties: true
894
- };
895
- function createPopupActionOpenViewParams(overrides = {}) {
896
- return {
897
- mode: "drawer",
898
- size: "medium",
899
- pageModelClass: "ChildPageModel",
900
- ...overrides
901
- };
902
- }
903
- function createPopupBlockGrid(options) {
904
- return {
905
- uid: `${options.prefix}-grid`,
906
- use: "BlockGridModel",
907
- subModels: {
908
- items: options.items || []
909
- }
910
- };
911
- }
912
- function createPopupChildPageTree(options) {
913
- return {
914
- uid: `${options.prefix}-page`,
915
- use: "ChildPageModel",
916
- stepParams: {
917
- pageSettings: {
918
- general: {
919
- displayTitle: false,
920
- enableTabs: true
921
- }
922
- }
923
- },
924
- subModels: {
925
- tabs: [
926
- {
927
- uid: `${options.prefix}-tab`,
928
- use: "ChildPageTabModel",
929
- stepParams: {
930
- pageTabSettings: {
931
- tab: {
932
- title: options.tabTitle || "Popup"
933
- }
934
- }
935
- },
936
- subModels: {
937
- grid: createPopupBlockGrid({
938
- prefix: `${options.prefix}-tab`,
939
- items: options.items
940
- })
941
- }
942
- }
943
- ]
944
- }
945
- };
946
- }
947
- function createPopupPageSlotSchema() {
948
- return {
949
- type: "object",
950
- use: "ChildPageModel",
951
- description: "Popup child page.",
952
- childSchemaPatch: {
953
- subModelSlots: {
954
- tabs: {
955
- type: "array",
956
- uses: ["ChildPageTabModel"],
957
- required: true,
958
- minItems: 1,
959
- description: "Popup child page tabs."
960
- }
961
- }
962
- }
963
- };
964
- }
965
- const popupActionAntiPatterns = [
966
- {
967
- title: "Do not treat openView parameters alone as a complete popup",
968
- description: "A usable popup action should provide a popup child page tree instead of relying only on runtime defaults."
969
- },
970
- {
971
- title: "Do not use arbitrary pageModelClass values",
972
- description: "pageModelClass is restricted to ChildPageModel or RootPageModel."
973
- }
974
- ];
975
- function createPopupActionStepParams(title, overrides = {}) {
976
- return {
977
- buttonSettings: {
978
- general: {
979
- title,
980
- type: "default"
981
- }
982
- },
983
- popupSettings: {
984
- openView: createPopupActionOpenViewParams(overrides)
985
- }
986
- };
987
- }
988
- function createPopupActionExample(options) {
989
- return {
990
- uid: options.uid,
991
- use: options.use,
992
- stepParams: createPopupActionStepParams(options.title, options.openView),
993
- subModels: {
994
- page: createPopupChildPageTree({
995
- prefix: options.prefix,
996
- tabTitle: options.tabTitle,
997
- items: options.items
998
- })
999
- }
1000
- };
1001
- }
1002
- function createPopupActionPattern(options) {
1003
- return {
1004
- title: options.title,
1005
- description: options.description,
1006
- snippet: {
1007
- use: options.use,
1008
- stepParams: createPopupActionStepParams(options.buttonTitle, options.openView),
1009
- subModels: {
1010
- page: createPopupChildPageTree({
1011
- prefix: options.prefix,
1012
- tabTitle: options.tabTitle,
1013
- items: options.items
1014
- })
1015
- }
1016
- }
1017
- };
1018
- }
1019
- const detailItemStepParamsSchema = {
1020
- type: "object",
1021
- properties: {
1022
- fieldSettings: {
1023
- type: "object",
1024
- properties: {
1025
- init: fieldBindingInitSchema
1026
- },
1027
- additionalProperties: true
1028
- },
1029
- detailItemSettings: {
1030
- type: "object",
1031
- properties: {
1032
- showLabel: showLabelStepParamsSchema,
1033
- label: labelStepParamsSchema,
1034
- aclCheck: emptyObjectSchema,
1035
- init: emptyObjectSchema,
1036
- tooltip: tooltipStepParamsSchema,
1037
- description: descriptionStepParamsSchema,
1038
- model: {
1039
- type: "object",
1040
- additionalProperties: true
1041
- },
1042
- fieldNames: {
1043
- type: "object",
1044
- additionalProperties: true
1045
- }
1046
- },
1047
- additionalProperties: true
1048
- },
1049
- paginationChange: {
1050
- type: "object",
1051
- properties: {
1052
- aclCheckRefresh: aclCheckRefreshParamsSchema
1053
- },
1054
- additionalProperties: true
1055
- }
1056
- },
1057
- additionalProperties: true
1058
- };
1059
- const formItemStepParamsSchema = {
1060
- type: "object",
1061
- properties: {
1062
- fieldSettings: {
1063
- type: "object",
1064
- properties: {
1065
- init: fieldBindingInitSchema
1066
- },
1067
- additionalProperties: true
1068
- },
1069
- editItemSettings: {
1070
- type: "object",
1071
- properties: {
1072
- showLabel: showLabelStepParamsSchema,
1073
- label: labelStepParamsSchema,
1074
- aclCheck: emptyObjectSchema,
1075
- init: emptyObjectSchema,
1076
- tooltip: tooltipStepParamsSchema,
1077
- description: descriptionStepParamsSchema,
1078
- initialValue: defaultValueStepParamsSchema,
1079
- validation: {
1080
- type: "object",
1081
- additionalProperties: true
1082
- },
1083
- required: {
1084
- type: "object",
1085
- additionalProperties: true
1086
- },
1087
- model: {
1088
- type: "object",
1089
- additionalProperties: true
1090
- },
1091
- pattern: {
1092
- type: "object",
1093
- additionalProperties: true
1094
- },
1095
- titleField: {
1096
- type: "object",
1097
- additionalProperties: true
1098
- }
1099
- },
1100
- additionalProperties: true
1101
- },
1102
- paginationChange: {
1103
- type: "object",
1104
- properties: {
1105
- aclCheckRefresh: aclCheckRefreshParamsSchema
1106
- },
1107
- additionalProperties: true
1108
- }
1109
- },
1110
- additionalProperties: true
1111
- };
1112
- const assignFormItemStepParamsSchema = {
1113
- type: "object",
1114
- properties: {
1115
- fieldSettings: {
1116
- type: "object",
1117
- properties: {
1118
- init: fieldBindingInitSchema,
1119
- assignValue: {
1120
- type: "object",
1121
- properties: {
1122
- value: {}
1123
- },
1124
- additionalProperties: true
1125
- }
1126
- },
1127
- additionalProperties: true
1128
- },
1129
- editItemSettings: {
1130
- type: "object",
1131
- properties: {
1132
- showLabel: showLabelStepParamsSchema,
1133
- label: labelStepParamsSchema,
1134
- init: emptyObjectSchema,
1135
- tooltip: tooltipStepParamsSchema,
1136
- description: descriptionStepParamsSchema,
1137
- validation: {
1138
- type: "object",
1139
- additionalProperties: true
1140
- },
1141
- required: {
1142
- type: "object",
1143
- additionalProperties: true
1144
- }
1145
- },
1146
- additionalProperties: true
1147
- }
1148
- },
1149
- additionalProperties: true
1150
- };
1151
- const filterFormItemStepParamsSchema = {
1152
- type: "object",
1153
- properties: {
1154
- fieldSettings: {
1155
- type: "object",
1156
- properties: {
1157
- init: fieldBindingInitSchema
1158
- },
1159
- additionalProperties: true
1160
- },
1161
- filterFormItemSettings: {
1162
- type: "object",
1163
- properties: {
1164
- init: filterFormItemInitStepParamsSchema,
1165
- label: labelStepParamsSchema,
1166
- showLabel: showLabelStepParamsSchema,
1167
- tooltip: tooltipStepParamsSchema,
1168
- description: descriptionStepParamsSchema,
1169
- initialValue: defaultValueStepParamsSchema,
1170
- model: {
1171
- type: "object",
1172
- additionalProperties: true
1173
- },
1174
- connectFields: {
1175
- type: "object",
1176
- additionalProperties: true
1177
- },
1178
- defaultOperator: {
1179
- type: "object",
1180
- additionalProperties: true
1181
- },
1182
- operatorComponentProps: {
1183
- type: "object",
1184
- additionalProperties: true
1185
- },
1186
- customizeFilterRender: {
1187
- type: "object",
1188
- additionalProperties: true
1189
- },
1190
- initField: emptyObjectSchema
1191
- },
1192
- additionalProperties: true
1193
- }
1194
- },
1195
- additionalProperties: true
1196
- };
1197
- const tableColumnStepParamsSchema = {
1198
- type: "object",
1199
- properties: {
1200
- fieldSettings: {
1201
- type: "object",
1202
- properties: {
1203
- init: fieldBindingInitSchema
1204
- },
1205
- additionalProperties: true
1206
- },
1207
- tableColumnSettings: {
1208
- type: "object",
1209
- properties: {
1210
- init: emptyObjectSchema,
1211
- title: {
1212
- type: "object",
1213
- properties: {
1214
- title: { type: "string" }
1215
- },
1216
- additionalProperties: false
1217
- },
1218
- tooltip: tooltipStepParamsSchema,
1219
- width: tableColumnWidthStepParamsSchema,
1220
- aclCheck: emptyObjectSchema,
1221
- quickEdit: tableColumnEditableStepParamsSchema,
1222
- model: {
1223
- type: "object",
1224
- additionalProperties: true
1225
- },
1226
- sorter: tableColumnSorterStepParamsSchema,
1227
- fixed: {
1228
- type: "object",
1229
- additionalProperties: true
1230
- },
1231
- fieldNames: {
1232
- type: "object",
1233
- additionalProperties: true
1234
- }
1235
- },
1236
- additionalProperties: true
1237
- }
1238
- },
1239
- additionalProperties: true
1240
- };
1241
- function createFieldBoundStepParamsSchema(bindingFlowKey, bindingFlowSchema, extraProperties = {}) {
1242
- return {
1243
- type: "object",
1244
- properties: {
1245
- fieldSettings: {
1246
- type: "object",
1247
- properties: {
1248
- init: fieldBindingInitSchema,
1249
- ...bindingFlowKey === "fieldSettings" ? extraProperties : {}
1250
- },
1251
- additionalProperties: true
1252
- },
1253
- ...bindingFlowKey === "fieldSettings" ? {} : { [bindingFlowKey]: bindingFlowSchema },
1254
- ...bindingFlowKey === "fieldSettings" ? {} : extraProperties
1255
- },
1256
- additionalProperties: true
1257
- };
1258
- }
1259
- function createRuntimeFieldDynamicHint(modelUse, path, contextRequirements, unresolvedReason) {
1260
- return {
1261
- kind: "dynamic-children",
1262
- path,
1263
- message: `${modelUse} field renderer depends on runtime field bindings and collection metadata.`,
1264
- "x-flow": {
1265
- slotRules: {
1266
- slotKey: "field",
1267
- type: "object"
1268
- },
1269
- contextRequirements,
1270
- unresolvedReason
1271
- }
1272
- };
1273
- }
1274
- function createFieldModelStepParamsSchema(extraFieldSettingsProperties = {}) {
1275
- return {
1276
- type: "object",
1277
- properties: {
1278
- fieldSettings: {
1279
- type: "object",
1280
- properties: {
1281
- init: fieldBindingInitSchema,
1282
- ...extraFieldSettingsProperties
1283
- },
1284
- additionalProperties: true
1285
- }
1286
- },
1287
- additionalProperties: true
1288
- };
1289
- }
1290
- function createFieldModelSkeleton(use, init = {}) {
1291
- return {
1292
- uid: `todo-${use}`.replace(/[^a-zA-Z0-9]+/g, "-").toLowerCase(),
1293
- use,
1294
- ...Object.keys(init).length > 0 ? {
1295
- stepParams: {
1296
- fieldSettings: {
1297
- init: {
1298
- ...init
1299
- }
1300
- }
1301
- }
1302
- } : {}
1303
- };
1304
- }
1305
- function createFieldModelSchemaContribution(options) {
1306
- const contribution = {
1307
- use: options.use,
1308
- title: options.title,
1309
- source: options.source ?? "official",
1310
- strict: options.strict ?? false,
1311
- exposure: options.exposure ?? "internal",
1312
- abstract: options.abstract,
1313
- allowDirectUse: options.allowDirectUse,
1314
- suggestedUses: options.suggestedUses,
1315
- stepParamsSchema: options.stepParamsSchema || createFieldModelStepParamsSchema(),
1316
- skeleton: options.skeleton || createFieldModelSkeleton(options.use)
1317
- };
1318
- return contribution;
1319
- }
1320
- const collectionResourceInitSchema = {
1321
- type: "object",
1322
- properties: {
1323
- dataSourceKey: { type: "string" },
1324
- collectionName: { type: "string" },
1325
- associationName: { type: "string" },
1326
- sourceId: { type: ["string", "number"] },
1327
- filterByTk: { type: ["string", "number"] }
1328
- },
1329
- required: ["dataSourceKey", "collectionName"],
1330
- additionalProperties: true
1331
- };
1332
- const collectionResourceSettingsStepParamsSchema = {
1333
- type: "object",
1334
- properties: {
1335
- resourceSettings: {
1336
- type: "object",
1337
- properties: {
1338
- init: collectionResourceInitSchema
1339
- },
1340
- additionalProperties: true
1341
- }
1342
- },
1343
- additionalProperties: true
1344
- };
1345
- function createCollectionResourceInit(init = {}) {
1346
- return {
1347
- dataSourceKey: "main",
1348
- collectionName: "users",
1349
- ...init
1350
- };
1351
- }
1352
- function createCollectionResourceStepParams(init = {}, extraStepParams = {}) {
1353
- return {
1354
- resourceSettings: {
1355
- init: createCollectionResourceInit(init)
1356
- },
1357
- ...extraStepParams
1358
- };
1359
- }
1360
- function createCurrentRecordCollectionPattern(use, extraStepParams = {}) {
1361
- return {
1362
- title: "Current record mode",
1363
- description: "Bind the block to the current record when the page or popup provides filterByTk.",
1364
- snippet: {
1365
- use,
1366
- stepParams: createCollectionResourceStepParams(
1367
- {
1368
- filterByTk: "{{ctx.view.inputArgs.filterByTk}}"
1369
- },
1370
- extraStepParams
1371
- )
1372
- }
1373
- };
1374
- }
1375
- function createAssociatedCollectionPattern(use, extraStepParams = {}) {
1376
- return {
1377
- title: "Associated records in popup/new scene",
1378
- description: "Use associationName + sourceId when the block should load records through a parent relation.",
1379
- snippet: {
1380
- use,
1381
- stepParams: createCollectionResourceStepParams(
1382
- {
1383
- collectionName: "roles",
1384
- associationName: "users.roles",
1385
- sourceId: "{{ctx.view.inputArgs.sourceId}}"
1386
- },
1387
- extraStepParams
1388
- )
1389
- }
1390
- };
1391
- }
1392
- const formBlockBaseStepParamsSchema = {
1393
- type: "object",
1394
- properties: {
1395
- ...collectionResourceSettingsStepParamsSchema.properties || {},
1396
- formModelSettings: {
1397
- type: "object",
1398
- properties: {
1399
- layout: layoutParamsSchema,
1400
- assignRules: linkageRuleValueSchema
1401
- },
1402
- additionalProperties: true
1403
- },
1404
- eventSettings: {
1405
- type: "object",
1406
- properties: {
1407
- linkageRules: linkageRuleValueSchema
1408
- },
1409
- additionalProperties: true
1410
- }
1411
- },
1412
- additionalProperties: true
1413
- };
1414
- function createFormGridDynamicHints() {
1415
- return [
1416
- {
1417
- kind: "dynamic-children",
1418
- path: "FormGridModel.subModels.items",
1419
- message: "Form grid items depend on the form field tree and runtime field model factories.",
1420
- "x-flow": {
1421
- slotRules: {
1422
- slotKey: "items",
1423
- type: "array",
1424
- allowedUses: formGridItemUses
1425
- },
1426
- contextRequirements: ["form field tree", "field model factories"],
1427
- unresolvedReason: "runtime-form-grid-items"
1428
- }
1429
- }
1430
- ];
1431
- }
1432
- function createFormBlockSubModelSlots() {
1433
- return {
1434
- grid: {
1435
- type: "object",
1436
- use: "FormGridModel",
1437
- description: "Primary form grid container."
1438
- },
1439
- actions: {
1440
- type: "array",
1441
- uses: formBlockActionUses,
1442
- schema: genericModelNodeSchema,
1443
- description: "Form actions are resolved from the runtime form action registry."
1444
- }
1445
- };
1446
- }
1447
- function createFormBlockSkeleton(use) {
1448
- return {
1449
- uid: "todo-uid",
1450
- use,
1451
- stepParams: createCollectionResourceStepParams(
1452
- {},
1453
- {
1454
- formModelSettings: {
1455
- layout: {
1456
- layout: "vertical",
1457
- colon: true
1458
- },
1459
- assignRules: {
1460
- value: []
1461
- }
1462
- },
1463
- eventSettings: {
1464
- linkageRules: {
1465
- value: []
1466
- }
1467
- }
1468
- }
1469
- ),
1470
- subModels: {
1471
- grid: {
1472
- uid: "todo-grid-uid",
1473
- use: "FormGridModel"
1474
- },
1475
- actions: []
1476
- }
1477
- };
1478
- }
1479
- function createFormBlockMinimalExample(use) {
1480
- return {
1481
- uid: `${use}-users`.toLowerCase(),
1482
- use,
1483
- stepParams: createCollectionResourceStepParams(
1484
- {},
1485
- {
1486
- formModelSettings: {
1487
- layout: {
1488
- layout: "vertical",
1489
- colon: true
1490
- },
1491
- assignRules: {
1492
- value: []
1493
- }
1494
- },
1495
- eventSettings: {
1496
- linkageRules: {
1497
- value: []
1498
- }
1499
- }
1500
- }
1501
- ),
1502
- subModels: {
1503
- grid: {
1504
- uid: `${use}-grid-users`.toLowerCase(),
1505
- use: "FormGridModel"
1506
- },
1507
- actions: []
1508
- }
1509
- };
1510
- }
1511
- function createFormBlockCommonPatterns(use) {
1512
- return [
1513
- {
1514
- title: "Empty editable form block shell",
1515
- snippet: {
1516
- use,
1517
- stepParams: createCollectionResourceStepParams(
1518
- {},
1519
- {
1520
- formModelSettings: {
1521
- layout: {
1522
- layout: "vertical",
1523
- colon: true
1524
- }
1525
- }
1526
- }
1527
- ),
1528
- subModels: {
1529
- grid: {
1530
- uid: "form-grid-uid",
1531
- use: "FormGridModel"
1532
- }
1533
- }
1534
- }
1535
- }
1536
- ];
1537
- }
1538
- const formBlockAntiPatterns = [
1539
- {
1540
- title: "Do not omit grid when generating a complete form tree",
1541
- description: "A form block can be persisted without subModels, but useful form payloads usually need a grid child."
1542
- }
1543
- ];
1544
- function createFormBlockDynamicHints(use) {
1545
- return [
1546
- {
1547
- kind: "dynamic-children",
1548
- path: `${use}.subModels`,
1549
- message: "Form block child models are assembled from runtime model classes and field metadata.",
1550
- "x-flow": {
1551
- slotRules: {
1552
- slotKey: "actions",
1553
- type: "array",
1554
- allowedUses: formBlockActionUses
1555
- },
1556
- contextRequirements: ["form field tree", "collection metadata"],
1557
- unresolvedReason: "runtime-form-children"
1558
- }
1559
- }
1560
- ];
1561
- }
1562
- // Annotate the CommonJS export names for ESM import in node:
1563
- 0 && (module.exports = {
1564
- aclCheckRefreshParamsSchema,
1565
- actionButtonGeneralStepParamsSchema,
1566
- actionButtonSettingsStepParamsSchema,
1567
- assignFormItemStepParamsSchema,
1568
- childPageSettingsStepParamsSchema,
1569
- collectionActionUses,
1570
- collectionResourceInitSchema,
1571
- collectionResourceSettingsStepParamsSchema,
1572
- confirmStepParamsSchema,
1573
- coreBlockGridItemUses,
1574
- createActionStepParamsSchema,
1575
- createAssociatedCollectionPattern,
1576
- createCollectionResourceInit,
1577
- createCollectionResourceStepParams,
1578
- createCurrentRecordCollectionPattern,
1579
- createFieldBoundStepParamsSchema,
1580
- createFieldModelSchemaContribution,
1581
- createFieldModelSkeleton,
1582
- createFieldModelStepParamsSchema,
1583
- createFormBlockCommonPatterns,
1584
- createFormBlockDynamicHints,
1585
- createFormBlockMinimalExample,
1586
- createFormBlockSkeleton,
1587
- createFormBlockSubModelSlots,
1588
- createFormGridDynamicHints,
1589
- createGridLayoutDocs,
1590
- createGridLayoutStepParamsSchema,
1591
- createPopupActionExample,
1592
- createPopupActionOpenViewParams,
1593
- createPopupActionPattern,
1594
- createPopupActionStepParams,
1595
- createPopupBlockGrid,
1596
- createPopupChildPageTree,
1597
- createPopupPageSlotSchema,
1598
- createRuntimeFieldDynamicHint,
1599
- createRuntimeFieldModelSlotSchema,
1600
- dataScopeParamsSchema,
1601
- defaultValueStepParamsSchema,
1602
- deleteActionSettingsStepParamsSchema,
1603
- descriptionStepParamsSchema,
1604
- detailItemStepParamsSchema,
1605
- detailsGridItemUses,
1606
- emptyObjectSchema,
1607
- expandCollapseActionSettingsStepParamsSchema,
1608
- fieldBindingInitSchema,
1609
- filterActionSettingsStepParamsSchema,
1610
- filterFieldMetadataSchema,
1611
- filterFormActionUses,
1612
- filterFormCollapseSettingsStepParamsSchema,
1613
- filterFormGridItemUses,
1614
- filterFormItemInitStepParamsSchema,
1615
- filterFormItemStepParamsSchema,
1616
- formBlockActionUses,
1617
- formBlockAntiPatterns,
1618
- formBlockBaseStepParamsSchema,
1619
- formGridItemUses,
1620
- formItemStepParamsSchema,
1621
- formSubmitSettingsStepParamsSchema,
1622
- genericFilterSchema,
1623
- genericModelNodeSchema,
1624
- gridRowOrderSchema,
1625
- gridRowsSchema,
1626
- gridSizesSchema,
1627
- labelStepParamsSchema,
1628
- layoutParamsSchema,
1629
- linkActionSettingsStepParamsSchema,
1630
- linkageRuleValueSchema,
1631
- linkageRulesRefreshParamsSchema,
1632
- openViewParamsSchema,
1633
- pageTabSettingsStepParamsSchema,
1634
- pageTabUses,
1635
- popupActionAntiPatterns,
1636
- popupActionSettingsStepParamsSchema,
1637
- publicBlockRootUses,
1638
- recordActionUses,
1639
- refreshActionSettingsStepParamsSchema,
1640
- runJsActionSettingsStepParamsSchema,
1641
- showLabelStepParamsSchema,
1642
- sortingRuleParamsSchema,
1643
- tableColumnEditableStepParamsSchema,
1644
- tableColumnSorterStepParamsSchema,
1645
- tableColumnStepParamsSchema,
1646
- tableColumnUses,
1647
- tableColumnWidthStepParamsSchema,
1648
- tooltipStepParamsSchema
1649
- });