@nocobase/plugin-flow-engine 2.1.0-alpha.12 → 2.1.0-alpha.14
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.
- package/dist/ai/ai-employees/nathan/index.js +1 -112
- package/dist/ai/ai-employees/nathan/prompt.md +132 -0
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextApis.js +2 -2
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextEnvs.js +2 -2
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextVars.js +2 -2
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/lintAndTestJS.js +2 -2
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +10 -12
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-surfaces/action-scope.d.ts +37 -0
- package/dist/server/flow-surfaces/action-scope.js +146 -0
- package/dist/server/flow-surfaces/builder.d.ts +209 -0
- package/dist/server/flow-surfaces/builder.js +858 -0
- package/dist/server/flow-surfaces/catalog.d.ts +65 -0
- package/dist/server/flow-surfaces/catalog.js +2766 -0
- package/dist/server/flow-surfaces/chart-config.d.ts +121 -0
- package/dist/server/flow-surfaces/chart-config.js +1394 -0
- package/dist/server/flow-surfaces/compiler.d.ts +22 -0
- package/dist/server/flow-surfaces/compiler.js +1129 -0
- package/dist/server/flow-surfaces/configure-options.d.ts +23 -0
- package/dist/server/flow-surfaces/configure-options.js +671 -0
- package/dist/server/flow-surfaces/constants.d.ts +13 -0
- package/dist/server/flow-surfaces/constants.js +137 -0
- package/dist/server/flow-surfaces/context.d.ts +72 -0
- package/dist/server/flow-surfaces/context.js +556 -0
- package/dist/server/flow-surfaces/contract-guard.d.ts +19 -0
- package/dist/server/flow-surfaces/contract-guard.js +411 -0
- package/dist/server/flow-surfaces/errors.d.ts +47 -0
- package/dist/server/flow-surfaces/errors.js +145 -0
- package/dist/server/flow-surfaces/executor.d.ts +13 -0
- package/dist/server/flow-surfaces/executor.js +97 -0
- package/dist/server/flow-surfaces/field-semantics.d.ts +15 -0
- package/dist/server/flow-surfaces/field-semantics.js +80 -0
- package/dist/server/{flow-models/http-error-adapter.d.ts → flow-surfaces/index.d.ts} +3 -2
- package/dist/server/flow-surfaces/index.js +352 -0
- package/dist/server/flow-surfaces/locator.d.ts +28 -0
- package/dist/server/flow-surfaces/locator.js +238 -0
- package/dist/server/flow-surfaces/placement.d.ts +33 -0
- package/dist/server/flow-surfaces/placement.js +192 -0
- package/dist/server/flow-surfaces/route-sync.d.ts +47 -0
- package/dist/server/flow-surfaces/route-sync.js +392 -0
- package/dist/server/flow-surfaces/service.d.ts +530 -0
- package/dist/server/flow-surfaces/service.js +7736 -0
- package/dist/server/flow-surfaces/support-matrix.d.ts +28 -0
- package/dist/server/flow-surfaces/support-matrix.js +246 -0
- package/dist/server/flow-surfaces/surface-context.d.ts +51 -0
- package/dist/server/flow-surfaces/surface-context.js +356 -0
- package/dist/server/flow-surfaces/types.d.ts +192 -0
- package/dist/server/{flow-schema-contributions/actions/aclCheck.js → flow-surfaces/types.js} +2 -24
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +6 -4
- package/dist/server/plugin.d.ts +0 -3
- package/dist/server/plugin.js +7 -36
- package/dist/server/repository.d.ts +9 -67
- package/dist/server/repository.js +106 -422
- package/dist/server/server.d.ts +0 -7
- package/dist/server/server.js +53 -23
- package/dist/server/variables/resolve.d.ts +21 -0
- package/dist/server/variables/resolve.js +79 -0
- package/dist/swagger/flow-surfaces.d.ts +3186 -0
- package/dist/swagger/flow-surfaces.js +4320 -0
- package/dist/swagger/index.d.ts +2837 -810
- package/dist/swagger/index.js +14 -696
- package/package.json +2 -4
- package/dist/node_modules/ajv/.runkit_example.js +0 -23
- package/dist/node_modules/ajv/LICENSE +0 -22
- package/dist/node_modules/ajv/dist/2019.d.ts +0 -19
- package/dist/node_modules/ajv/dist/2019.js +0 -61
- package/dist/node_modules/ajv/dist/2020.d.ts +0 -19
- package/dist/node_modules/ajv/dist/2020.js +0 -55
- package/dist/node_modules/ajv/dist/ajv.d.ts +0 -18
- package/dist/node_modules/ajv/dist/ajv.js +0 -7
- package/dist/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
- package/dist/node_modules/ajv/dist/compile/codegen/code.js +0 -156
- package/dist/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
- package/dist/node_modules/ajv/dist/compile/codegen/index.js +0 -697
- package/dist/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
- package/dist/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
- package/dist/node_modules/ajv/dist/compile/errors.d.ts +0 -13
- package/dist/node_modules/ajv/dist/compile/errors.js +0 -123
- package/dist/node_modules/ajv/dist/compile/index.d.ts +0 -80
- package/dist/node_modules/ajv/dist/compile/index.js +0 -242
- package/dist/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
- package/dist/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
- package/dist/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
- package/dist/node_modules/ajv/dist/compile/jtd/serialize.js +0 -236
- package/dist/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
- package/dist/node_modules/ajv/dist/compile/jtd/types.js +0 -14
- package/dist/node_modules/ajv/dist/compile/names.d.ts +0 -20
- package/dist/node_modules/ajv/dist/compile/names.js +0 -28
- package/dist/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
- package/dist/node_modules/ajv/dist/compile/ref_error.js +0 -12
- package/dist/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
- package/dist/node_modules/ajv/dist/compile/resolve.js +0 -155
- package/dist/node_modules/ajv/dist/compile/rules.d.ts +0 -28
- package/dist/node_modules/ajv/dist/compile/rules.js +0 -26
- package/dist/node_modules/ajv/dist/compile/util.d.ts +0 -40
- package/dist/node_modules/ajv/dist/compile/util.js +0 -178
- package/dist/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
- package/dist/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
- package/dist/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
- package/dist/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
- package/dist/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
- package/dist/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
- package/dist/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
- package/dist/node_modules/ajv/dist/compile/validate/index.js +0 -520
- package/dist/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
- package/dist/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
- package/dist/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
- package/dist/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
- package/dist/node_modules/ajv/dist/core.d.ts +0 -174
- package/dist/node_modules/ajv/dist/core.js +0 -618
- package/dist/node_modules/ajv/dist/jtd.d.ts +0 -47
- package/dist/node_modules/ajv/dist/jtd.js +0 -72
- package/dist/node_modules/ajv/dist/refs/data.json +0 -13
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
- package/dist/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
- package/dist/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
- package/dist/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
- package/dist/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
- package/dist/node_modules/ajv/dist/runtime/equal.js +0 -7
- package/dist/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
- package/dist/node_modules/ajv/dist/runtime/parseJson.js +0 -185
- package/dist/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
- package/dist/node_modules/ajv/dist/runtime/quote.js +0 -30
- package/dist/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
- package/dist/node_modules/ajv/dist/runtime/re2.js +0 -6
- package/dist/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
- package/dist/node_modules/ajv/dist/runtime/timestamp.js +0 -42
- package/dist/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
- package/dist/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
- package/dist/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
- package/dist/node_modules/ajv/dist/runtime/uri.js +0 -6
- package/dist/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
- package/dist/node_modules/ajv/dist/runtime/validation_error.js +0 -11
- package/dist/node_modules/ajv/dist/standalone/index.d.ts +0 -6
- package/dist/node_modules/ajv/dist/standalone/index.js +0 -90
- package/dist/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
- package/dist/node_modules/ajv/dist/standalone/instance.js +0 -35
- package/dist/node_modules/ajv/dist/types/index.d.ts +0 -183
- package/dist/node_modules/ajv/dist/types/index.js +0 -3
- package/dist/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
- package/dist/node_modules/ajv/dist/types/json-schema.js +0 -3
- package/dist/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
- package/dist/node_modules/ajv/dist/types/jtd-schema.js +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
- package/dist/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
- package/dist/node_modules/ajv/dist/vocabularies/code.js +0 -131
- package/dist/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
- package/dist/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
- package/dist/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
- package/dist/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
- package/dist/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
- package/dist/node_modules/ajv/dist/vocabularies/errors.js +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
- package/dist/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
- package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
- package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
- package/dist/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
- package/dist/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
- package/dist/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
- package/dist/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
- package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
- package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
- package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
- package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
- package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
- package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
- package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
- package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
- package/dist/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
- package/dist/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
- package/dist/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
- package/dist/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
- package/dist/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
- package/dist/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/next.js +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
- package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -33
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
- package/dist/node_modules/ajv/lib/2019.ts +0 -81
- package/dist/node_modules/ajv/lib/2020.ts +0 -75
- package/dist/node_modules/ajv/lib/ajv.ts +0 -70
- package/dist/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
- package/dist/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
- package/dist/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
- package/dist/node_modules/ajv/lib/compile/errors.ts +0 -184
- package/dist/node_modules/ajv/lib/compile/index.ts +0 -324
- package/dist/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
- package/dist/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -277
- package/dist/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
- package/dist/node_modules/ajv/lib/compile/names.ts +0 -27
- package/dist/node_modules/ajv/lib/compile/ref_error.ts +0 -13
- package/dist/node_modules/ajv/lib/compile/resolve.ts +0 -149
- package/dist/node_modules/ajv/lib/compile/rules.ts +0 -50
- package/dist/node_modules/ajv/lib/compile/util.ts +0 -213
- package/dist/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
- package/dist/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
- package/dist/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
- package/dist/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
- package/dist/node_modules/ajv/lib/compile/validate/index.ts +0 -582
- package/dist/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
- package/dist/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
- package/dist/node_modules/ajv/lib/core.ts +0 -892
- package/dist/node_modules/ajv/lib/jtd.ts +0 -132
- package/dist/node_modules/ajv/lib/refs/data.json +0 -13
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
- package/dist/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
- package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
- package/dist/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
- package/dist/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
- package/dist/node_modules/ajv/lib/runtime/equal.ts +0 -7
- package/dist/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
- package/dist/node_modules/ajv/lib/runtime/quote.ts +0 -31
- package/dist/node_modules/ajv/lib/runtime/re2.ts +0 -6
- package/dist/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
- package/dist/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
- package/dist/node_modules/ajv/lib/runtime/uri.ts +0 -6
- package/dist/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
- package/dist/node_modules/ajv/lib/standalone/index.ts +0 -100
- package/dist/node_modules/ajv/lib/standalone/instance.ts +0 -36
- package/dist/node_modules/ajv/lib/types/index.ts +0 -244
- package/dist/node_modules/ajv/lib/types/json-schema.ts +0 -187
- package/dist/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
- package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
- package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
- package/dist/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
- package/dist/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
- package/dist/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
- package/dist/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
- package/dist/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
- package/dist/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
- package/dist/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
- package/dist/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
- package/dist/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
- package/dist/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
- package/dist/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
- package/dist/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
- package/dist/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
- package/dist/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
- package/dist/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
- package/dist/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
- package/dist/node_modules/ajv/lib/vocabularies/code.ts +0 -168
- package/dist/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
- package/dist/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
- package/dist/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
- package/dist/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
- package/dist/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
- package/dist/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
- package/dist/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
- package/dist/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
- package/dist/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
- package/dist/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
- package/dist/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
- package/dist/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
- package/dist/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
- package/dist/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
- package/dist/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
- package/dist/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
- package/dist/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
- package/dist/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
- package/dist/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
- package/dist/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
- package/dist/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
- package/dist/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
- package/dist/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
- package/dist/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
- package/dist/node_modules/ajv/lib/vocabularies/next.ts +0 -8
- package/dist/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
- package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
- package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
- package/dist/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
- package/dist/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
- package/dist/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
- package/dist/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
- package/dist/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
- package/dist/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -39
- package/dist/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
- package/dist/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
- package/dist/node_modules/ajv/package.json +0 -1
- package/dist/server/flow-models/action-handlers.d.ts +0 -26
- package/dist/server/flow-models/action-handlers.js +0 -209
- package/dist/server/flow-models/http-error-adapter.js +0 -58
- package/dist/server/flow-models/mutate-executor.d.ts +0 -17
- package/dist/server/flow-models/mutate-executor.js +0 -309
- package/dist/server/flow-models/repository-internals/duplicate-helpers.d.ts +0 -12
- package/dist/server/flow-models/repository-internals/duplicate-helpers.js +0 -121
- package/dist/server/flow-models/repository-internals/ensure-lock.d.ts +0 -15
- package/dist/server/flow-models/repository-internals/ensure-lock.js +0 -117
- package/dist/server/flow-models/repository-internals/errors.d.ts +0 -21
- package/dist/server/flow-models/repository-internals/errors.js +0 -78
- package/dist/server/flow-models/schema-contribution-collector.d.ts +0 -27
- package/dist/server/flow-models/schema-contribution-collector.js +0 -217
- package/dist/server/flow-models/validation-facade.d.ts +0 -29
- package/dist/server/flow-models/validation-facade.js +0 -181
- package/dist/server/flow-schema-contributions/actions/aclCheck.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.js +0 -46
- package/dist/server/flow-schema-contributions/actions/actionLinkageRules.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/actionLinkageRules.js +0 -48
- package/dist/server/flow-schema-contributions/actions/confirm.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/confirm.js +0 -73
- package/dist/server/flow-schema-contributions/actions/customVariable.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/customVariable.js +0 -76
- package/dist/server/flow-schema-contributions/actions/dataScope.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/dataScope.js +0 -79
- package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.js +0 -62
- package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.js +0 -62
- package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.js +0 -80
- package/dist/server/flow-schema-contributions/actions/formAssignRules.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/formAssignRules.js +0 -62
- package/dist/server/flow-schema-contributions/actions/index.d.ts +0 -31
- package/dist/server/flow-schema-contributions/actions/index.js +0 -117
- package/dist/server/flow-schema-contributions/actions/layout.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/layout.js +0 -68
- package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.js +0 -50
- package/dist/server/flow-schema-contributions/actions/navigateToURL.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/navigateToURL.js +0 -82
- package/dist/server/flow-schema-contributions/actions/openView.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/openView.js +0 -68
- package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.js +0 -56
- package/dist/server/flow-schema-contributions/actions/runjs.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/runjs.js +0 -55
- package/dist/server/flow-schema-contributions/actions/setTargetDataScope.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/setTargetDataScope.js +0 -59
- package/dist/server/flow-schema-contributions/actions/showMessage.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/showMessage.js +0 -69
- package/dist/server/flow-schema-contributions/actions/showNotification.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/showNotification.js +0 -76
- package/dist/server/flow-schema-contributions/actions/sortingRule.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/sortingRule.js +0 -67
- package/dist/server/flow-schema-contributions/field-models.d.ts +0 -12
- package/dist/server/flow-schema-contributions/field-models.js +0 -693
- package/dist/server/flow-schema-contributions/index.d.ts +0 -13
- package/dist/server/flow-schema-contributions/index.js +0 -64
- package/dist/server/flow-schema-contributions/models/ActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ActionModel.js +0 -202
- package/dist/server/flow-schema-contributions/models/AddChildActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/AddChildActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/AddNewActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/AddNewActionModel.js +0 -93
- package/dist/server/flow-schema-contributions/models/AssignFormGridModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/AssignFormGridModel.js +0 -82
- package/dist/server/flow-schema-contributions/models/AssignFormItemModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/AssignFormItemModel.js +0 -80
- package/dist/server/flow-schema-contributions/models/AssignFormModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/AssignFormModel.js +0 -122
- package/dist/server/flow-schema-contributions/models/BasePageTabModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/BasePageTabModel.js +0 -71
- package/dist/server/flow-schema-contributions/models/BlockGridModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/BlockGridModel.js +0 -81
- package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/ChildPageModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ChildPageModel.js +0 -106
- package/dist/server/flow-schema-contributions/models/ChildPageTabModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ChildPageTabModel.js +0 -114
- package/dist/server/flow-schema-contributions/models/CreateFormModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/CreateFormModel.js +0 -54
- package/dist/server/flow-schema-contributions/models/DeleteActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/DeleteActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/DetailsBlockModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/DetailsBlockModel.js +0 -179
- package/dist/server/flow-schema-contributions/models/DetailsGridModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/DetailsGridModel.js +0 -82
- package/dist/server/flow-schema-contributions/models/DetailsItemModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/DetailsItemModel.js +0 -77
- package/dist/server/flow-schema-contributions/models/EditActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/EditActionModel.js +0 -93
- package/dist/server/flow-schema-contributions/models/EditFormModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/EditFormModel.js +0 -103
- package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/FilterActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterActionModel.js +0 -57
- package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.js +0 -155
- package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.js +0 -85
- package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.js +0 -89
- package/dist/server/flow-schema-contributions/models/FilterFormGridModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormGridModel.js +0 -82
- package/dist/server/flow-schema-contributions/models/FilterFormItemModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormItemModel.js +0 -77
- package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.js +0 -108
- package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.js +0 -87
- package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.js +0 -87
- package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.js +0 -78
- package/dist/server/flow-schema-contributions/models/FormBlockModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FormBlockModel.js +0 -45
- package/dist/server/flow-schema-contributions/models/FormGridModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FormGridModel.js +0 -67
- package/dist/server/flow-schema-contributions/models/FormItemModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FormItemModel.js +0 -77
- package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.js +0 -87
- package/dist/server/flow-schema-contributions/models/JSActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSActionModel.js +0 -65
- package/dist/server/flow-schema-contributions/models/JSBlockModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSBlockModel.js +0 -90
- package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/JSColumnModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSColumnModel.js +0 -100
- package/dist/server/flow-schema-contributions/models/JSFormActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSFormActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/JSItemModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSItemModel.js +0 -87
- package/dist/server/flow-schema-contributions/models/JSRecordActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSRecordActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/LinkActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/LinkActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/PageModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/PageModel.js +0 -159
- package/dist/server/flow-schema-contributions/models/PageTabModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/PageTabModel.js +0 -69
- package/dist/server/flow-schema-contributions/models/PopupActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/PopupActionModel.js +0 -92
- package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.js +0 -119
- package/dist/server/flow-schema-contributions/models/RefreshActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/RefreshActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/RootPageModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/RootPageModel.js +0 -124
- package/dist/server/flow-schema-contributions/models/RootPageTabModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/RootPageTabModel.js +0 -69
- package/dist/server/flow-schema-contributions/models/RouteModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/RouteModel.js +0 -121
- package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.js +0 -93
- package/dist/server/flow-schema-contributions/models/TableBlockModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/TableBlockModel.js +0 -254
- package/dist/server/flow-schema-contributions/models/TableColumnModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/TableColumnModel.js +0 -77
- package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.js +0 -66
- package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.js +0 -173
- package/dist/server/flow-schema-contributions/models/ViewActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ViewActionModel.js +0 -123
- package/dist/server/flow-schema-contributions/models/index.d.ts +0 -66
- package/dist/server/flow-schema-contributions/models/index.js +0 -257
- package/dist/server/flow-schema-contributions/shared.d.ts +0 -501
- package/dist/server/flow-schema-contributions/shared.js +0 -1649
- package/dist/server/flow-schema-service.d.ts +0 -87
- package/dist/server/flow-schema-service.js +0 -963
|
@@ -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
|
-
});
|