@kong-ui-public/entities-plugins 9.272.13 → 9.272.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/entities-plugins.es.js +12099 -14700
- package/dist/entities-plugins.umd.js +141 -145
- package/dist/filler/cypress/index.js +1 -258
- package/dist/filler/packages/entities/entities-plugins/src/filler/cypress/index.d.ts +2 -0
- package/dist/filler/packages/entities/entities-plugins/src/filler/cypress/index.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/filler/playwright/index.d.ts +2 -0
- package/dist/filler/packages/entities/entities-plugins/src/filler/playwright/index.d.ts.map +1 -0
- package/dist/filler/playwright/index.js +1 -232
- package/dist/freeform/index.js +1 -2645
- package/dist/freeform/style.css +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/AddCredentialToConsumerForm.vue.d.ts +2 -2
- package/dist/types/components/CreateConsumerCredentialForm.vue.d.ts +2 -2
- package/dist/types/components/CreateConsumerCredentialForm.vue.d.ts.map +1 -1
- package/dist/types/components/CredentialConfigurationForm.vue.d.ts.map +1 -1
- package/dist/types/components/PluginConfigCard.vue.d.ts +2 -2
- package/dist/types/components/PluginEntityForm.vue.d.ts +4 -4
- package/dist/types/components/PluginEntityForm.vue.d.ts.map +1 -1
- package/dist/types/components/PluginForm.vue.d.ts +6 -6
- package/dist/types/components/fields/kong-identity/ConfigFormContent.vue.d.ts.map +1 -1
- package/dist/types/components/fields/kong-identity/ConfigFormWithIdentity.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/components/AdvancedFields.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/components/CodeEditor.vue.d.ts +2 -2
- package/dist/types/components/free-form/components/CollapsibleSection.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/components/CommonForm.vue.d.ts.map +1 -0
- package/dist/types/components/free-form/components/ConditionField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/components/ConfigForm.vue.d.ts.map +1 -0
- package/dist/types/components/free-form/components/CredentialSecretField.vue.d.ts +1 -1
- package/dist/types/components/free-form/components/CredentialSecretField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/components/PluginConfigurationForm.vue.d.ts +2 -1
- package/dist/types/components/free-form/components/PluginConfigurationForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/components/RadioField.vue.d.ts +1 -1
- package/dist/types/components/free-form/components/RadioField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/components/RedisConfigCard.vue.d.ts +1 -1
- package/dist/types/components/free-form/components/RedisConfigCard.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/components/RedisSelector.vue.d.ts +1 -1
- package/dist/types/components/free-form/components/RedisSelector.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/components/ScopeEntityField.vue.d.ts +1 -1
- package/dist/types/components/free-form/components/ScopeEntityField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/composables/code-lens-providers.d.ts +1 -1
- package/dist/types/components/free-form/composables/code-lens-providers.d.ts.map +1 -1
- package/dist/types/components/free-form/const.d.ts +1 -1
- package/dist/types/components/free-form/const.d.ts.map +1 -1
- package/dist/types/components/free-form/define-plugin-config.d.ts +3 -2
- package/dist/types/components/free-form/define-plugin-config.d.ts.map +1 -1
- package/dist/types/components/free-form/layout/StandardLayout.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/layout/provider.d.ts +2 -2
- package/dist/types/components/free-form/layout/provider.d.ts.map +1 -1
- package/dist/types/components/free-form/plugin-registry.d.ts +3 -2
- package/dist/types/components/free-form/plugin-registry.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/_shared/use-expression-mode.d.ts +1 -1
- package/dist/types/components/free-form/plugins/_shared/use-expression-mode.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/_shared/vectordb.d.ts +2 -2
- package/dist/types/components/free-form/plugins/_shared/vectordb.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/ace.d.ts +1 -1
- package/dist/types/components/free-form/plugins/acl/ACLForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/acl/ACLModeCard.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/acl/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/acme.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-a2a-proxy.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-aws-guardrails.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-azure-content-safety.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-custom-guardrail.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-gcp-model-armor.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-lakera-guard.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-llm-as-judge.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-mcp-oauth2.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-mcp-proxy/AIMcpProxyForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/ai-mcp-proxy/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-prompt-compressor.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-prompt-decorator.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-prompt-guard.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-prompt-template.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-prompt-template.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/ai-proxy-advanced.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-proxy.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-rag-injector.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-rate-limiting-advanced.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-request-transformer.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-response-transformer.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-sanitizer.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-sanitizer.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/ai-semantic-cache.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-semantic-prompt-guard.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ai-semantic-response-guard.d.ts +1 -1
- package/dist/types/components/free-form/plugins/app-dynamics.d.ts +1 -1
- package/dist/types/components/free-form/plugins/application-registration.d.ts +1 -1
- package/dist/types/components/free-form/plugins/aws-lambda.d.ts +1 -1
- package/dist/types/components/free-form/plugins/azure-functions.d.ts +1 -1
- package/dist/types/components/free-form/plugins/basic-auth/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/bot-detection.d.ts +1 -1
- package/dist/types/components/free-form/plugins/canary.d.ts +1 -1
- package/dist/types/components/free-form/plugins/confluent-consume.d.ts +1 -1
- package/dist/types/components/free-form/plugins/confluent-consume.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/confluent.d.ts +1 -1
- package/dist/types/components/free-form/plugins/confluent.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/correlation-id.d.ts +1 -1
- package/dist/types/components/free-form/plugins/cors.d.ts +1 -1
- package/dist/types/components/free-form/plugins/datadog.d.ts +1 -1
- package/dist/types/components/free-form/plugins/datakit/CaCertificatesField.vue.d.ts +1 -1
- package/dist/types/components/free-form/plugins/datakit/CaCertificatesField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/CodeEditor.vue.d.ts +2 -2
- package/dist/types/components/free-form/plugins/datakit/flow-editor/FlowEditor.vue.d.ts +8 -8
- package/dist/types/components/free-form/plugins/datakit/flow-editor/composables/useNodeForm.d.ts +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/composables/useNodeForm.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/composables/useResourcesSchema.d.ts +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/composables/useResourcesSchema.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/modal/EditorMain.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node/NodePanelItem.vue.d.ts +2 -2
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node/node.d.ts +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node/schemas.d.ts +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node/schemas.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/HttpMethodField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/InputsField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/InputsRecordField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormBranch.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormCache.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormCall.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormExit.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormJq.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormJsonToXml.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormJwtDecode.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormJwtSign.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormJwtVerify.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormProperty.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormResponse.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormServiceRequest.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormStatic.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormXmlToJson.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/side-panel/CacheField.vue.d.ts +2 -2
- package/dist/types/components/free-form/plugins/datakit/flow-editor/side-panel/CacheField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/side-panel/ResourcesPanel.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/side-panel/VaultField.vue.d.ts +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/side-panel/VaultField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/store/flow.d.ts +18 -18
- package/dist/types/components/free-form/plugins/datakit/flow-editor/store/store.d.ts +12 -12
- package/dist/types/components/free-form/plugins/datakit/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/datakit/schema/compat.d.ts +3 -3
- package/dist/types/components/free-form/plugins/datakit/schema/strict.d.ts +11 -11
- package/dist/types/components/free-form/plugins/degraphql.d.ts +1 -1
- package/dist/types/components/free-form/plugins/entitlement-enforcement/EntitlementEnforcementForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/entitlement-enforcement/FeatureSelectField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/entitlement-enforcement/ResponseMappingField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/entitlement-enforcement/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/exit-transformer.d.ts +1 -1
- package/dist/types/components/free-form/plugins/file-log.d.ts +1 -1
- package/dist/types/components/free-form/plugins/forward-proxy.d.ts +1 -1
- package/dist/types/components/free-form/plugins/graphql-proxy-cache-advanced.d.ts +1 -1
- package/dist/types/components/free-form/plugins/graphql-rate-limiting-advanced.d.ts +1 -1
- package/dist/types/components/free-form/plugins/grpc-gateway.d.ts +1 -1
- package/dist/types/components/free-form/plugins/grpc-web.d.ts +1 -1
- package/dist/types/components/free-form/plugins/header-cert-auth.d.ts +1 -1
- package/dist/types/components/free-form/plugins/hmac-auth.d.ts +1 -1
- package/dist/types/components/free-form/plugins/http-log.d.ts +1 -1
- package/dist/types/components/free-form/plugins/injection-protection.d.ts +1 -1
- package/dist/types/components/free-form/plugins/injection-protection.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/ip-restriction.d.ts +1 -1
- package/dist/types/components/free-form/plugins/jq.d.ts +1 -1
- package/dist/types/components/free-form/plugins/json-threat-protection.d.ts +1 -1
- package/dist/types/components/free-form/plugins/jwe-decrypt.d.ts +1 -1
- package/dist/types/components/free-form/plugins/jwt-signer/JwtSignerForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/jwt-signer/KeysetField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/jwt-signer/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/jwt.d.ts +1 -1
- package/dist/types/components/free-form/plugins/kafka-consume.d.ts +1 -1
- package/dist/types/components/free-form/plugins/kafka-consume.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/kafka-log.d.ts +1 -1
- package/dist/types/components/free-form/plugins/kafka-log.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/kafka-upstream.d.ts +1 -1
- package/dist/types/components/free-form/plugins/kafka-upstream.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/key-auth/IdentityRealmsField.vue.d.ts +1 -1
- package/dist/types/components/free-form/plugins/key-auth/IdentityRealmsField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/key-auth/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/key-auth-enc.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ldap-auth-advanced.d.ts +1 -1
- package/dist/types/components/free-form/plugins/ldap-auth.d.ts +1 -1
- package/dist/types/components/free-form/plugins/loggly.d.ts +1 -1
- package/dist/types/components/free-form/plugins/metering-and-billing/MeteringAndBillingForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/metering-and-billing/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/mocking.d.ts +1 -1
- package/dist/types/components/free-form/plugins/mtls-auth.d.ts +1 -1
- package/dist/types/components/free-form/plugins/oas-validation.d.ts +1 -1
- package/dist/types/components/free-form/plugins/oauth2-introspection.d.ts +1 -1
- package/dist/types/components/free-form/plugins/oauth2.d.ts +1 -1
- package/dist/types/components/free-form/plugins/opa.d.ts +1 -1
- package/dist/types/components/free-form/plugins/openid-connect/ClientJwkField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/openid-connect/OpenidConnectForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/openid-connect/PrincipalLookupSettings.vue.d.ts +2 -2
- package/dist/types/components/free-form/plugins/openid-connect/PrincipalLookupSettings.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/openid-connect/PrincipalsSection.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/openid-connect/VerifySignatureField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/openid-connect/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/opentelemetry.d.ts +1 -1
- package/dist/types/components/free-form/plugins/post-function.d.ts +1 -1
- package/dist/types/components/free-form/plugins/pre-function.d.ts +1 -1
- package/dist/types/components/free-form/plugins/prometheus.d.ts +1 -1
- package/dist/types/components/free-form/plugins/proxy-cache-advanced.d.ts +1 -1
- package/dist/types/components/free-form/plugins/proxy-cache.d.ts +1 -1
- package/dist/types/components/free-form/plugins/rate-limiting/ConfigForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/rate-limiting/RateLimitingForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/rate-limiting/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/rate-limiting-advanced/ConfigForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/rate-limiting-advanced/CustomKeyField.vue.d.ts +1 -1
- package/dist/types/components/free-form/plugins/rate-limiting-advanced/CustomKeyField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/rate-limiting-advanced/ErrorMessageForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/rate-limiting-advanced/RateLimitingAdvancedForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/rate-limiting-advanced/RedisField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/rate-limiting-advanced/RequestLimitsForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/rate-limiting-advanced/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/redirect.d.ts +1 -1
- package/dist/types/components/free-form/plugins/request-callout/CalloutForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/request-callout/CalloutsForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/request-callout/ConfigForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/request-callout/RequestCalloutForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/request-callout/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/request-size-limiting.d.ts +1 -1
- package/dist/types/components/free-form/plugins/request-termination.d.ts +1 -1
- package/dist/types/components/free-form/plugins/request-transformer-advanced.d.ts +1 -1
- package/dist/types/components/free-form/plugins/request-transformer.d.ts +1 -1
- package/dist/types/components/free-form/plugins/request-validator.d.ts +1 -1
- package/dist/types/components/free-form/plugins/request-validator.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/response-ratelimiting.d.ts +1 -1
- package/dist/types/components/free-form/plugins/response-transformer-advanced.d.ts +1 -1
- package/dist/types/components/free-form/plugins/response-transformer.d.ts +1 -1
- package/dist/types/components/free-form/plugins/route-by-header.d.ts +1 -1
- package/dist/types/components/free-form/plugins/route-transformer-advanced.d.ts +1 -1
- package/dist/types/components/free-form/plugins/saml.d.ts +1 -1
- package/dist/types/components/free-form/plugins/service-protection/ConfigForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/service-protection/ErrorMessageForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/service-protection/RedisField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/service-protection/RequestLimitsForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/service-protection/index.d.ts +1 -1
- package/dist/types/components/free-form/plugins/session.d.ts +1 -1
- package/dist/types/components/free-form/plugins/solace-consume.d.ts +1 -1
- package/dist/types/components/free-form/plugins/solace-log.d.ts +1 -1
- package/dist/types/components/free-form/plugins/solace-upstream.d.ts +1 -1
- package/dist/types/components/free-form/plugins/standard-webhooks.d.ts +1 -1
- package/dist/types/components/free-form/plugins/statsd-advanced.d.ts +1 -1
- package/dist/types/components/free-form/plugins/statsd.d.ts +1 -1
- package/dist/types/components/free-form/plugins/syslog.d.ts +1 -1
- package/dist/types/components/free-form/plugins/tcp-log.d.ts +1 -1
- package/dist/types/components/free-form/plugins/tls-handshake-modifier.d.ts +1 -1
- package/dist/types/components/free-form/plugins/tls-metadata-headers.d.ts +1 -1
- package/dist/types/components/free-form/plugins/udp-log.d.ts +1 -1
- package/dist/types/components/free-form/plugins/upstream-oauth.d.ts +1 -1
- package/dist/types/components/free-form/plugins/upstream-timeout.d.ts +1 -1
- package/dist/types/components/free-form/plugins/vault-auth.d.ts +1 -1
- package/dist/types/components/free-form/plugins/websocket-size-limit.d.ts +1 -1
- package/dist/types/components/free-form/plugins/websocket-validator.d.ts +1 -1
- package/dist/types/components/free-form/plugins/xml-threat-protection.d.ts +1 -1
- package/dist/types/components/free-form/plugins/zipkin.d.ts +1 -1
- package/dist/types/components/free-form/schema-enhancement.d.ts +1 -1
- package/dist/types/components/free-form/schema-enhancement.d.ts.map +1 -1
- package/dist/{filler/packages/entities/entities-plugins/src/components/free-form/core → types/components/free-form}/types.d.ts +5 -118
- package/dist/types/components/free-form/types.d.ts.map +1 -0
- package/dist/types/composables/index.d.ts +1 -1
- package/dist/types/composables/useSchemas.d.ts +1 -1
- package/dist/types/composables/useSchemas.d.ts.map +1 -1
- package/dist/types/constants/index.d.ts +1 -3
- package/dist/types/constants/index.d.ts.map +1 -1
- package/dist/types/filler/cypress/index.d.ts +2 -0
- package/dist/types/filler/cypress/index.d.ts.map +1 -0
- package/dist/types/filler/playwright/index.d.ts +2 -0
- package/dist/types/filler/playwright/index.d.ts.map +1 -0
- package/dist/types/freeform.d.ts +2 -21
- package/dist/types/freeform.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +6 -9
- package/dist/filler/field-walker-SzWGNejv.js +0 -21925
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/ancestors.d.ts +0 -11
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/ancestors.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/constants.d.ts +0 -9
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/constants.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/expression-paths.d.ts +0 -55
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/expression-paths.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/expression.d.ts +0 -28
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/expression.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/field-path.d.ts +0 -6
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/field-path.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/field.d.ts +0 -46
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/field.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/form-context.d.ts +0 -111
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/form-context.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/index.d.ts +0 -11
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/index.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/key-id-map.d.ts +0 -17
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/key-id-map.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/labels.d.ts +0 -26
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/labels.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/render-rules.d.ts +0 -45
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/render-rules.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/schema.d.ts +0 -42
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/schema.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/useMapField.d.ts +0 -37
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/composables/useMapField.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/create-filler.d.ts +0 -10
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/create-filler.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/array.d.ts +0 -3
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/array.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/boolean.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/boolean.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/enum.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/enum.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/expression.d.ts +0 -9
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/expression.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/foreign.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/foreign.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/index.d.ts +0 -38
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/index.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/json.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/json.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/map.d.ts +0 -3
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/map.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/number.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/number.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/record.d.ts +0 -3
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/record.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/string.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/string.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/tag.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/tag.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/types.d.ts +0 -20
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/handlers/types.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/index.d.ts +0 -3
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/cypress/index.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/create-filler.d.ts +0 -11
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/create-filler.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/array.d.ts +0 -3
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/array.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/boolean.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/boolean.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/enum.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/enum.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/expression.d.ts +0 -9
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/expression.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/foreign.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/foreign.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/index.d.ts +0 -38
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/index.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/json.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/json.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/map.d.ts +0 -3
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/map.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/number.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/number.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/record.d.ts +0 -3
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/record.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/string.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/string.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/tag.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/tag.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/types.d.ts +0 -18
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/handlers/types.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/index.d.ts +0 -3
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/playwright/index.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/shared/field-walker.d.ts +0 -43
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/shared/field-walker.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/shared/index.d.ts +0 -4
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/shared/index.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/shared/schema-utils.d.ts +0 -6
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/shared/schema-utils.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/shared/selectors.d.ts +0 -32
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/filler/shared/selectors.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/form-schema.d.ts +0 -167
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/form-schema.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/types.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/utils.d.ts +0 -95
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/core/utils.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/constants/index.d.ts +0 -15
- package/dist/filler/packages/entities/entities-plugins/src/constants/index.d.ts.map +0 -1
- package/dist/filler/packages/entities/entities-plugins/src/types/plugins/free-form.d.ts +0 -32
- package/dist/filler/packages/entities/entities-plugins/src/types/plugins/free-form.d.ts.map +0 -1
- package/dist/types/components/free-form/Common/CommonForm.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/Common/ConfigForm.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/Common/index.d.ts +0 -2
- package/dist/types/components/free-form/Common/index.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/ArrayField.vue.d.ts +0 -48
- package/dist/types/components/free-form/core/components/ArrayField.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/BooleanField.vue.d.ts +0 -24
- package/dist/types/components/free-form/core/components/BooleanField.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/EnhancedInput.vue.d.ts +0 -24
- package/dist/types/components/free-form/core/components/EnhancedInput.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/EntityChecksAlert.vue.d.ts +0 -9
- package/dist/types/components/free-form/core/components/EntityChecksAlert.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/EnumField.vue.d.ts +0 -54
- package/dist/types/components/free-form/core/components/EnumField.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/ExpressionEditor.vue.d.ts +0 -34
- package/dist/types/components/free-form/core/components/ExpressionEditor.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/ExpressionField.vue.d.ts +0 -19
- package/dist/types/components/free-form/core/components/ExpressionField.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/Field.vue.d.ts +0 -21
- package/dist/types/components/free-form/core/components/Field.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/FieldRenderer.vue.d.ts +0 -19
- package/dist/types/components/free-form/core/components/FieldRenderer.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/ForeignField.vue.d.ts +0 -27
- package/dist/types/components/free-form/core/components/ForeignField.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/Form.vue.d.ts +0 -45
- package/dist/types/components/free-form/core/components/Form.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/JsonField.vue.d.ts +0 -24
- package/dist/types/components/free-form/core/components/JsonField.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/MapField.vue.d.ts +0 -30
- package/dist/types/components/free-form/core/components/MapField.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/NumberField.vue.d.ts +0 -26
- package/dist/types/components/free-form/core/components/NumberField.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/ObjectField.vue.d.ts +0 -45
- package/dist/types/components/free-form/core/components/ObjectField.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/SlideTransition.vue.d.ts +0 -14
- package/dist/types/components/free-form/core/components/SlideTransition.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/StringArrayField.vue.d.ts +0 -24
- package/dist/types/components/free-form/core/components/StringArrayField.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/StringField.vue.d.ts +0 -32
- package/dist/types/components/free-form/core/components/StringField.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/components/SwitchField.vue.d.ts +0 -15
- package/dist/types/components/free-form/core/components/SwitchField.vue.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/ancestors.d.ts +0 -11
- package/dist/types/components/free-form/core/composables/ancestors.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/constants.d.ts +0 -9
- package/dist/types/components/free-form/core/composables/constants.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/expression-paths.d.ts +0 -55
- package/dist/types/components/free-form/core/composables/expression-paths.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/expression.d.ts +0 -28
- package/dist/types/components/free-form/core/composables/expression.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/field-path.d.ts +0 -6
- package/dist/types/components/free-form/core/composables/field-path.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/field.d.ts +0 -46
- package/dist/types/components/free-form/core/composables/field.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/form-context.d.ts +0 -111
- package/dist/types/components/free-form/core/composables/form-context.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/index.d.ts +0 -11
- package/dist/types/components/free-form/core/composables/index.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/key-id-map.d.ts +0 -17
- package/dist/types/components/free-form/core/composables/key-id-map.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/labels.d.ts +0 -26
- package/dist/types/components/free-form/core/composables/labels.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/render-rules.d.ts +0 -45
- package/dist/types/components/free-form/core/composables/render-rules.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/schema.d.ts +0 -42
- package/dist/types/components/free-form/core/composables/schema.d.ts.map +0 -1
- package/dist/types/components/free-form/core/composables/useMapField.d.ts +0 -37
- package/dist/types/components/free-form/core/composables/useMapField.d.ts.map +0 -1
- package/dist/types/components/free-form/core/field-dispatch.d.ts +0 -14
- package/dist/types/components/free-form/core/field-dispatch.d.ts.map +0 -1
- package/dist/types/components/free-form/core/form-schema.d.ts +0 -167
- package/dist/types/components/free-form/core/form-schema.d.ts.map +0 -1
- package/dist/types/components/free-form/core/types.d.ts +0 -287
- package/dist/types/components/free-form/core/types.d.ts.map +0 -1
- package/dist/types/components/free-form/core/utils.d.ts +0 -95
- package/dist/types/components/free-form/core/utils.d.ts.map +0 -1
- package/dist/types/composables/useFreeformI18n.d.ts +0 -170
- package/dist/types/composables/useFreeformI18n.d.ts.map +0 -1
- /package/dist/types/components/free-form/{Common → components}/CommonForm.vue.d.ts +0 -0
- /package/dist/types/components/free-form/{Common → components}/ConfigForm.vue.d.ts +0 -0
package/dist/freeform/index.js
CHANGED
|
@@ -1,2645 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { get as _e, uniqueId as dt, isEqual as he, omit as Tt, cloneDeep as et, isFunction as tt, set as He, upperFirst as Ot } from "lodash-es";
|
|
3
|
-
import { createInjectionState as Mt } from "@vueuse/core";
|
|
4
|
-
import { marked as It } from "marked";
|
|
5
|
-
import Kt from "dompurify";
|
|
6
|
-
import { KTextArea as xt, KInput as Lt, KButton as at, KExternalLink as Rt, KCheckbox as Ct, KCard as Ne, KLabel as Bt, KMultiselect as Dt, KSelect as qt, KInputSwitch as Ht } from "@kong/kongponents";
|
|
7
|
-
import { AddIcon as je, CloseIcon as Je, TrashIcon as Nt, ChevronRightIcon as Ut } from "@kong/icons";
|
|
8
|
-
import { createI18n as zt, i18nTComponent as Wt } from "@kong-ui-public/i18n";
|
|
9
|
-
import { AUTOFILL_SLOT as ft } from "@kong-ui-public/forms";
|
|
10
|
-
import { SecretInput as Jt } from "@kong-ui-public/misc-widgets";
|
|
11
|
-
import "@kong-ui-public/misc-widgets/dist/style.css";
|
|
12
|
-
import { KUI_ICON_SIZE_30 as Gt } from "@kong/design-tokens";
|
|
13
|
-
function Yt(e) {
|
|
14
|
-
return e.map((s) => ({ value: s, label: `${s}` }));
|
|
15
|
-
}
|
|
16
|
-
const Ge = "*", Ye = "#", ce = "$", Oe = ".";
|
|
17
|
-
function K(...e) {
|
|
18
|
-
return e.join(Oe);
|
|
19
|
-
}
|
|
20
|
-
function Ve(...e) {
|
|
21
|
-
return K(ce, ...e);
|
|
22
|
-
}
|
|
23
|
-
function nt(e) {
|
|
24
|
-
return e.startsWith(K(ce, ""));
|
|
25
|
-
}
|
|
26
|
-
function q(e) {
|
|
27
|
-
return e.split(Oe).filter((s) => s !== "");
|
|
28
|
-
}
|
|
29
|
-
function ve(e) {
|
|
30
|
-
const s = q(e);
|
|
31
|
-
return s[s.length - 1];
|
|
32
|
-
}
|
|
33
|
-
function Xe(e) {
|
|
34
|
-
return e.startsWith(ce) && (e = K(...q(e).slice(1))), e;
|
|
35
|
-
}
|
|
36
|
-
function pt(e, s, t, n = "") {
|
|
37
|
-
if (e == null || typeof e != "object") return;
|
|
38
|
-
const o = Array.isArray(e) ? e.map((a, u) => String(u)) : Object.keys(e);
|
|
39
|
-
for (const a of o) {
|
|
40
|
-
const u = n ? K(n, a) : a;
|
|
41
|
-
s(u) ? e[a] = t(u) : pt(e[a], s, t, u);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function Xt(e) {
|
|
45
|
-
const s = R(e);
|
|
46
|
-
return s ? s.type === "set" && s.elements.type === "string" && !s.elements.one_of : !1;
|
|
47
|
-
}
|
|
48
|
-
function mt(e, s) {
|
|
49
|
-
return [...e].sort((t, n) => {
|
|
50
|
-
const o = Object.keys(t)[0], a = Object.keys(n)[0], u = s.indexOf(o), i = s.indexOf(a);
|
|
51
|
-
return u === -1 && i === -1 ? 0 : u === -1 ? 1 : i === -1 ? -1 : u - i;
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function vt(e, s) {
|
|
55
|
-
const t = /* @__PURE__ */ new Map();
|
|
56
|
-
e.forEach((r) => {
|
|
57
|
-
const c = Object.keys(r)[0];
|
|
58
|
-
t.set(c, r);
|
|
59
|
-
});
|
|
60
|
-
const n = /* @__PURE__ */ new Map();
|
|
61
|
-
s.forEach((r, c) => {
|
|
62
|
-
r.forEach((v, f) => {
|
|
63
|
-
n.has(v) || n.set(v, []), n.get(v).push({ bundleIndex: c, position: f });
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
const o = /* @__PURE__ */ new Set(), a = [], u = /* @__PURE__ */ new Set(), i = (r) => {
|
|
67
|
-
const c = n.get(r);
|
|
68
|
-
if (!c) return !0;
|
|
69
|
-
for (const { bundleIndex: v, position: f } of c) {
|
|
70
|
-
const p = s[v];
|
|
71
|
-
for (let d = 0; d < f; d++) {
|
|
72
|
-
const y = p[d];
|
|
73
|
-
if (t.has(y) && !o.has(y))
|
|
74
|
-
return !1;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return !0;
|
|
78
|
-
}, m = (r) => {
|
|
79
|
-
if (o.has(r)) return;
|
|
80
|
-
const c = t.get(r);
|
|
81
|
-
if (!c) return;
|
|
82
|
-
a.push(c), o.add(r), u.delete(r);
|
|
83
|
-
const v = n.get(r);
|
|
84
|
-
if (v)
|
|
85
|
-
for (const { bundleIndex: p, position: d } of v) {
|
|
86
|
-
const y = s[p];
|
|
87
|
-
for (let b = d + 1; b < y.length; b++) {
|
|
88
|
-
const P = y[b];
|
|
89
|
-
if (!o.has(P)) {
|
|
90
|
-
const w = t.get(P);
|
|
91
|
-
w && (a.push(w), o.add(P), u.delete(P));
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
const f = Array.from(u);
|
|
96
|
-
for (const p of f)
|
|
97
|
-
i(p) && m(p);
|
|
98
|
-
};
|
|
99
|
-
for (const r of e) {
|
|
100
|
-
const c = Object.keys(r)[0];
|
|
101
|
-
o.has(c) || (i(c) ? m(c) : u.add(c));
|
|
102
|
-
}
|
|
103
|
-
return a;
|
|
104
|
-
}
|
|
105
|
-
function Qt(e) {
|
|
106
|
-
const s = q(e);
|
|
107
|
-
let t = { parent: null };
|
|
108
|
-
for (s.pop(); s.length; ) {
|
|
109
|
-
const n = s.shift();
|
|
110
|
-
t.path = t.parent?.path ? K(t.parent.path, n) : n, t = { parent: t };
|
|
111
|
-
}
|
|
112
|
-
return t;
|
|
113
|
-
}
|
|
114
|
-
function ht(e) {
|
|
115
|
-
return g(() => Qt(R(e)));
|
|
116
|
-
}
|
|
117
|
-
const rt = /* @__PURE__ */ Symbol("free-form-field-path"), Ue = /* @__PURE__ */ Symbol("free-form-field-renderer-slots"), lt = /* @__PURE__ */ Symbol("free-form-field-reset-label-path-setting"), we = "free-form-field-renderers-slot";
|
|
118
|
-
function Zt(e) {
|
|
119
|
-
return e === "undefined" ? void 0 : null;
|
|
120
|
-
}
|
|
121
|
-
const ea = {
|
|
122
|
-
tooltipAttributes: {
|
|
123
|
-
maxWidth: "300px",
|
|
124
|
-
placement: "top"
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
function ta(e, s = "") {
|
|
128
|
-
const t = {}, n = e;
|
|
129
|
-
return Array.isArray(n.fields) ? Object.assign(t, Me(n, s)) : e.type === "array" && e.elements ? Object.assign(t, Ie(e, s)) : e.type === "map" && e.values && Object.assign(t, Ke(e, s)), t;
|
|
130
|
-
}
|
|
131
|
-
function Me(e, s = "") {
|
|
132
|
-
const t = {};
|
|
133
|
-
if (Array.isArray(e.fields))
|
|
134
|
-
for (const n of e.fields) {
|
|
135
|
-
const o = Object.keys(n)[0], a = n[o], u = s ? K(s, o) : o;
|
|
136
|
-
if (t[u] = a, a.type === "record" && Array.isArray(a.fields)) {
|
|
137
|
-
const i = Me(a, u);
|
|
138
|
-
Object.assign(t, i);
|
|
139
|
-
} else if (a.type === "array" && a.elements) {
|
|
140
|
-
const i = Ie(a, u);
|
|
141
|
-
Object.assign(t, i);
|
|
142
|
-
} else if (a.type === "map" && a.values) {
|
|
143
|
-
const i = Ke(a, u);
|
|
144
|
-
Object.assign(t, i);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return t;
|
|
148
|
-
}
|
|
149
|
-
function Ie(e, s = "") {
|
|
150
|
-
const t = {};
|
|
151
|
-
if (e.elements) {
|
|
152
|
-
let n = e.elements;
|
|
153
|
-
const o = K(s, Ge);
|
|
154
|
-
if (e.encrypted && n.type === "string" && (n = { ...n, encrypted: !0 }), t[o] = n, n.type === "record" && Array.isArray(n.fields)) {
|
|
155
|
-
const a = Me(n, o);
|
|
156
|
-
Object.assign(t, a);
|
|
157
|
-
} else if (n.type === "array" && n.elements) {
|
|
158
|
-
const a = Ie(n, o);
|
|
159
|
-
Object.assign(t, a);
|
|
160
|
-
} else if (n.type === "map" && n.values) {
|
|
161
|
-
const a = Ke(n, o);
|
|
162
|
-
Object.assign(t, a);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return t;
|
|
166
|
-
}
|
|
167
|
-
function Ke(e, s = "") {
|
|
168
|
-
const t = {}, n = K(s, Ye);
|
|
169
|
-
if (t[n] = e.values, e.values.type === "record" && Array.isArray(e.values.fields)) {
|
|
170
|
-
const o = Me(e.values, n);
|
|
171
|
-
Object.assign(t, o);
|
|
172
|
-
} else if ((e.values.type === "array" || e.values.type === "set") && e.values.elements) {
|
|
173
|
-
const o = Ie(e.values, n);
|
|
174
|
-
Object.assign(t, o);
|
|
175
|
-
} else if (e.values.type === "map" && e.values.values) {
|
|
176
|
-
const o = Ke(e.values, n);
|
|
177
|
-
Object.assign(t, o);
|
|
178
|
-
}
|
|
179
|
-
return t;
|
|
180
|
-
}
|
|
181
|
-
function ye(e, s) {
|
|
182
|
-
const t = q(e), n = [];
|
|
183
|
-
for (let o = 0; o < t.length; o++) {
|
|
184
|
-
const a = t[o], u = n.length > 0 ? K(...n) : "", i = u ? s[u] : void 0;
|
|
185
|
-
i?.type === "map" ? n.push(Ye) : i?.type === "array" ? n.push(Ge) : n.push(a);
|
|
186
|
-
}
|
|
187
|
-
return K(...n);
|
|
188
|
-
}
|
|
189
|
-
function aa(e, s) {
|
|
190
|
-
const t = R(e);
|
|
191
|
-
function n() {
|
|
192
|
-
return Zt(R(s)?.emptyFieldValue);
|
|
193
|
-
}
|
|
194
|
-
const o = g(() => t ? ta(t) : {});
|
|
195
|
-
function a(d) {
|
|
196
|
-
if (d) {
|
|
197
|
-
let y = ye(d, o.value || {});
|
|
198
|
-
return y.startsWith(`${ce}${Oe}`) && (y = y.slice(2)), o.value?.[y];
|
|
199
|
-
}
|
|
200
|
-
return t;
|
|
201
|
-
}
|
|
202
|
-
function u(d, y = !1) {
|
|
203
|
-
const b = a(d);
|
|
204
|
-
if (!b)
|
|
205
|
-
return null;
|
|
206
|
-
if (b.default !== void 0)
|
|
207
|
-
return b.default;
|
|
208
|
-
if (!b.auto)
|
|
209
|
-
return y || b.required ? b.type === "record" ? i(b, d) : b.type === "array" ? [] : b.type === "map" ? {} : n() : n();
|
|
210
|
-
}
|
|
211
|
-
function i(d, y) {
|
|
212
|
-
const b = {};
|
|
213
|
-
if (Array.isArray(d.fields))
|
|
214
|
-
for (const P of d.fields) {
|
|
215
|
-
const w = Object.keys(P)[0], h = y ? `${y}.${w}` : w, $ = u(h, !1);
|
|
216
|
-
$ !== void 0 && (b[w] = $);
|
|
217
|
-
}
|
|
218
|
-
return b;
|
|
219
|
-
}
|
|
220
|
-
function m(d) {
|
|
221
|
-
return d ? u(d, !0) : i(a(), "");
|
|
222
|
-
}
|
|
223
|
-
function r(d) {
|
|
224
|
-
const y = a(d), b = y?.description ? Kt.sanitize(It.parse(y.description, { async: !1 })) : void 0;
|
|
225
|
-
return {
|
|
226
|
-
...ea,
|
|
227
|
-
"data-testid": `ff-label-${d}`,
|
|
228
|
-
info: b
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
function c(d) {
|
|
232
|
-
const y = a(d);
|
|
233
|
-
return Yt(y?.one_of || y.elements?.one_of || []);
|
|
234
|
-
}
|
|
235
|
-
function v(d) {
|
|
236
|
-
const y = a(d), b = y?.default;
|
|
237
|
-
let P = null;
|
|
238
|
-
if (y?.type === "foreign" && b?.id)
|
|
239
|
-
P = b.id;
|
|
240
|
-
else {
|
|
241
|
-
if (b == null || typeof b == "object" || b === "")
|
|
242
|
-
return null;
|
|
243
|
-
if (Array.isArray(b)) {
|
|
244
|
-
if (b.length === 0)
|
|
245
|
-
return null;
|
|
246
|
-
P = b.join(", ");
|
|
247
|
-
} else
|
|
248
|
-
P = b.toString();
|
|
249
|
-
}
|
|
250
|
-
return `Default: ${P}`;
|
|
251
|
-
}
|
|
252
|
-
function f() {
|
|
253
|
-
return o.value;
|
|
254
|
-
}
|
|
255
|
-
function p(d) {
|
|
256
|
-
return a(d)?.required ? m(d) : n();
|
|
257
|
-
}
|
|
258
|
-
return {
|
|
259
|
-
getSchemaMap: f,
|
|
260
|
-
getSchema: a,
|
|
261
|
-
getDefault: m,
|
|
262
|
-
getSelectItems: c,
|
|
263
|
-
getLabelAttributes: r,
|
|
264
|
-
getPlaceholder: v,
|
|
265
|
-
getEmptyOrDefault: p,
|
|
266
|
-
/**
|
|
267
|
-
* The configured empty-field sentinel on its own, with no schema/path
|
|
268
|
-
* lookup and no required/default awareness. Use this (not
|
|
269
|
-
* `getEmptyOrDefault`) whenever the user actively clears a field's value
|
|
270
|
-
* — `getEmptyOrDefault` forces required-field structure and defaults
|
|
271
|
-
* back in, which would make it impossible to clear a required field
|
|
272
|
-
* that has an explicit `schema.default`.
|
|
273
|
-
*/
|
|
274
|
-
getEmptyValue: n
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
const ze = /* @__PURE__ */ Symbol("ff-render-rule-exact-match");
|
|
278
|
-
function Qn(e) {
|
|
279
|
-
return { [ze]: e };
|
|
280
|
-
}
|
|
281
|
-
function na(e, s) {
|
|
282
|
-
return typeof s == "object" && s !== null && ze in s ? he(e, s[ze]) : Array.isArray(s) ? s.some((n) => he(e, n)) : he(e, s);
|
|
283
|
-
}
|
|
284
|
-
function ra(e, s) {
|
|
285
|
-
const t = oe({}), n = oe({});
|
|
286
|
-
function o(h, $, k) {
|
|
287
|
-
n.value[h] = { ...n.value[h], [$]: k ? [...k] : [] };
|
|
288
|
-
}
|
|
289
|
-
function a(h, $) {
|
|
290
|
-
const k = n.value[h];
|
|
291
|
-
if (!k || !($ in k)) return;
|
|
292
|
-
const _ = { ...k };
|
|
293
|
-
delete _[$], Object.keys(_).length ? n.value[h] = _ : delete n.value[h];
|
|
294
|
-
}
|
|
295
|
-
function u(h, $) {
|
|
296
|
-
const k = h.map((S) => q(S).length), _ = k[0];
|
|
297
|
-
if (!k.every((S) => S === _)) {
|
|
298
|
-
const S = h.map((I, F) => ` - '${I}' is at level ${k[F]}`).join(`
|
|
299
|
-
`);
|
|
300
|
-
throw new Error(
|
|
301
|
-
`${$}: Fields must be at the same level. Found mixed levels:
|
|
302
|
-
${S}`
|
|
303
|
-
);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
function i(h) {
|
|
307
|
-
for (const [$, k] of Object.entries(h)) {
|
|
308
|
-
if (!k.bundles) continue;
|
|
309
|
-
for (const S of k.bundles)
|
|
310
|
-
if (new Set(S).size !== S.length) {
|
|
311
|
-
const F = S.filter((M, V) => S.indexOf(M) !== V);
|
|
312
|
-
throw new Error(
|
|
313
|
-
`Self-cycle detected in bundle: field '${F[0]}' appears multiple times in [${S.join(", ")}]`
|
|
314
|
-
);
|
|
315
|
-
}
|
|
316
|
-
const _ = /* @__PURE__ */ new Map();
|
|
317
|
-
for (const S of k.bundles)
|
|
318
|
-
for (let I = 1; I < S.length; I++) {
|
|
319
|
-
const F = S[I], M = S[I - 1];
|
|
320
|
-
_.has(F) || _.set(F, /* @__PURE__ */ new Set()), _.get(F).add(M);
|
|
321
|
-
}
|
|
322
|
-
for (const S of _.keys()) {
|
|
323
|
-
let I = function(V) {
|
|
324
|
-
if (M.includes(V)) {
|
|
325
|
-
const W = [...M, V].join(" -> ");
|
|
326
|
-
throw new Error(
|
|
327
|
-
`Circular bundle detected in path '${$}':
|
|
328
|
-
${W}`
|
|
329
|
-
);
|
|
330
|
-
}
|
|
331
|
-
if (F.has(V)) return;
|
|
332
|
-
F.add(V), M.push(V);
|
|
333
|
-
const E = _.get(V);
|
|
334
|
-
if (E)
|
|
335
|
-
for (const W of E)
|
|
336
|
-
I(W);
|
|
337
|
-
M.pop();
|
|
338
|
-
};
|
|
339
|
-
const F = /* @__PURE__ */ new Set(), M = [];
|
|
340
|
-
I(S);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
function m(h) {
|
|
345
|
-
for (const [$, k] of Object.entries(h))
|
|
346
|
-
if (k.dependencies)
|
|
347
|
-
for (const _ of Object.keys(k.dependencies)) {
|
|
348
|
-
let S = function(M) {
|
|
349
|
-
if (F.includes(M)) {
|
|
350
|
-
const E = [...F, M].join(" -> ");
|
|
351
|
-
throw new Error(
|
|
352
|
-
`Circular dependency detected in path '${$}':
|
|
353
|
-
${E}`
|
|
354
|
-
);
|
|
355
|
-
}
|
|
356
|
-
if (I.has(M)) return;
|
|
357
|
-
I.add(M), F.push(M);
|
|
358
|
-
const V = k.dependencies[M];
|
|
359
|
-
if (V) {
|
|
360
|
-
const [E] = V;
|
|
361
|
-
k.dependencies[E] && S(E);
|
|
362
|
-
}
|
|
363
|
-
F.pop();
|
|
364
|
-
};
|
|
365
|
-
const I = /* @__PURE__ */ new Set(), F = [];
|
|
366
|
-
S(_);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
function r(h, $) {
|
|
370
|
-
const k = h.map((S) => $ ? K($, S) : S), _ = q(k[0]);
|
|
371
|
-
return _.pop(), K(..._);
|
|
372
|
-
}
|
|
373
|
-
function c(h, $) {
|
|
374
|
-
if (!$) return h;
|
|
375
|
-
const k = `${$}${Oe}`;
|
|
376
|
-
return h.startsWith(k) ? h.slice(k.length) : h;
|
|
377
|
-
}
|
|
378
|
-
function v(h) {
|
|
379
|
-
const $ = q(h);
|
|
380
|
-
return $.pop(), K(...$);
|
|
381
|
-
}
|
|
382
|
-
function f() {
|
|
383
|
-
const h = {};
|
|
384
|
-
for (const [$, k] of Object.entries(t.value)) {
|
|
385
|
-
const _ = $ === ce ? "" : $;
|
|
386
|
-
if (k.bundles)
|
|
387
|
-
for (const S of k.bundles) {
|
|
388
|
-
if (S.length < 2)
|
|
389
|
-
throw new Error(
|
|
390
|
-
`Bundle must contain at least 2 fields. Found ${S.length} field(s) in bundle: [${S.join(", ")}]`
|
|
391
|
-
);
|
|
392
|
-
const I = S.map((V) => _ ? K(_, V) : V);
|
|
393
|
-
u(I, `Bundle [${S.join(", ")}]`);
|
|
394
|
-
const F = r(S, _) || ce;
|
|
395
|
-
h[F] || (h[F] = {}), h[F].bundles || (h[F].bundles = []);
|
|
396
|
-
const M = I.map((V) => c(V, F));
|
|
397
|
-
h[F].bundles.push(M);
|
|
398
|
-
}
|
|
399
|
-
if (k.dependencies)
|
|
400
|
-
for (const [S, [I, F]] of Object.entries(k.dependencies)) {
|
|
401
|
-
const M = _ ? K(_, S) : S, V = _ ? K(_, I) : I;
|
|
402
|
-
u(
|
|
403
|
-
[M, V],
|
|
404
|
-
`Dependency '${S}' -> '${I}'`
|
|
405
|
-
);
|
|
406
|
-
const E = v(M) || ce;
|
|
407
|
-
h[E] || (h[E] = {}), h[E].dependencies || (h[E].dependencies = {});
|
|
408
|
-
const W = c(M, E), J = c(V, E);
|
|
409
|
-
h[E].dependencies[W] = [J, F];
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
return i(h), m(h), h;
|
|
413
|
-
}
|
|
414
|
-
const p = g(() => {
|
|
415
|
-
try {
|
|
416
|
-
return f();
|
|
417
|
-
} catch (h) {
|
|
418
|
-
return console.error("Invalid render rules:", h instanceof Error ? h.message : String(h)), {};
|
|
419
|
-
}
|
|
420
|
-
});
|
|
421
|
-
function d(h) {
|
|
422
|
-
if (!h)
|
|
423
|
-
return p.value;
|
|
424
|
-
const $ = ye(h, e());
|
|
425
|
-
return p.value[$];
|
|
426
|
-
}
|
|
427
|
-
function y(h) {
|
|
428
|
-
let $ = !1;
|
|
429
|
-
return g(() => {
|
|
430
|
-
if ($) return;
|
|
431
|
-
const k = R(h);
|
|
432
|
-
try {
|
|
433
|
-
return d(k);
|
|
434
|
-
} catch (_) {
|
|
435
|
-
$ = !0, console.error(`Failed to get render rules for path: \`${k}\`,`, _ instanceof Error ? _.message : "");
|
|
436
|
-
return;
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
const b = g(
|
|
441
|
-
() => Object.values(p.value).some(
|
|
442
|
-
(h) => h.dependencies && Object.keys(h.dependencies).length > 0
|
|
443
|
-
)
|
|
444
|
-
);
|
|
445
|
-
function P(h) {
|
|
446
|
-
const {
|
|
447
|
-
fieldPath: $,
|
|
448
|
-
rules: k,
|
|
449
|
-
omittedFields: _
|
|
450
|
-
} = h, S = dt("omit-");
|
|
451
|
-
te([
|
|
452
|
-
() => R(k),
|
|
453
|
-
() => R($),
|
|
454
|
-
() => R(_)
|
|
455
|
-
], ([F, M, V], [, E]) => {
|
|
456
|
-
F ? t.value[M] = F : delete t.value[M], o(M, S, V), E && E !== M && (delete t.value[E], a(E, S));
|
|
457
|
-
}, { immediate: !0, deep: !0 });
|
|
458
|
-
const I = y($);
|
|
459
|
-
return St(() => {
|
|
460
|
-
const F = R($);
|
|
461
|
-
delete t.value[F], a(F, S);
|
|
462
|
-
}), I;
|
|
463
|
-
}
|
|
464
|
-
function w(h) {
|
|
465
|
-
const $ = q(h);
|
|
466
|
-
if (!$.length) return !1;
|
|
467
|
-
const k = $[$.length - 1], _ = K(...$.slice(0, -1)), S = n.value[_];
|
|
468
|
-
if (S) {
|
|
469
|
-
const J = Object.values(S);
|
|
470
|
-
if (J.length && J.every((O) => O.includes(k))) return !1;
|
|
471
|
-
}
|
|
472
|
-
const I = _ === "" ? ce : ye(_, e()), F = p.value[I]?.dependencies?.[k];
|
|
473
|
-
if (!F) return !1;
|
|
474
|
-
const [M, V] = F, E = _ ? K(_, M) : M, W = _e(s(), q(E));
|
|
475
|
-
return !na(W, V);
|
|
476
|
-
}
|
|
477
|
-
return {
|
|
478
|
-
useCurrentRules: P,
|
|
479
|
-
createComputedRules: y,
|
|
480
|
-
hasDependencies: b,
|
|
481
|
-
isFieldHidden: w
|
|
482
|
-
};
|
|
483
|
-
}
|
|
484
|
-
const xe = "expressions", Re = "";
|
|
485
|
-
function la(e) {
|
|
486
|
-
const s = q(Xe(e));
|
|
487
|
-
if (!(s.length < 2))
|
|
488
|
-
return K(xe, ...s.slice(1));
|
|
489
|
-
}
|
|
490
|
-
function sa(e, s) {
|
|
491
|
-
const t = q(Xe(e));
|
|
492
|
-
if (!(t[0] !== xe || t.length < 2))
|
|
493
|
-
return K(s, ...t.slice(1));
|
|
494
|
-
}
|
|
495
|
-
function oa(e) {
|
|
496
|
-
const s = e?.fields;
|
|
497
|
-
if (Array.isArray(s))
|
|
498
|
-
for (const t of s) {
|
|
499
|
-
const n = Object.keys(t)[0];
|
|
500
|
-
if (n === xe) continue;
|
|
501
|
-
const o = t[n];
|
|
502
|
-
if (!(o?.type !== "record" || !Array.isArray(o.fields)) && o.fields.some((a) => a[Object.keys(a)[0]]?.expressible === !0))
|
|
503
|
-
return n;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
function ia(e) {
|
|
507
|
-
return !!e && e.type === "string" && "expressible_kong_type" in e;
|
|
508
|
-
}
|
|
509
|
-
let ua = 0;
|
|
510
|
-
function ca() {
|
|
511
|
-
return `kid:${++ua}`;
|
|
512
|
-
}
|
|
513
|
-
function da(e) {
|
|
514
|
-
const s = ot(/* @__PURE__ */ new Map());
|
|
515
|
-
function t(r = "") {
|
|
516
|
-
const c = ca();
|
|
517
|
-
return s.set(c, r), c;
|
|
518
|
-
}
|
|
519
|
-
function n(r) {
|
|
520
|
-
return s.get(r);
|
|
521
|
-
}
|
|
522
|
-
function o(r, c) {
|
|
523
|
-
s.has(r) && s.set(r, c);
|
|
524
|
-
}
|
|
525
|
-
function a(r) {
|
|
526
|
-
s.delete(r);
|
|
527
|
-
}
|
|
528
|
-
function u(r) {
|
|
529
|
-
return fa(r, e, t);
|
|
530
|
-
}
|
|
531
|
-
function i(r) {
|
|
532
|
-
return pa(r, e, n);
|
|
533
|
-
}
|
|
534
|
-
function m() {
|
|
535
|
-
s.clear();
|
|
536
|
-
}
|
|
537
|
-
return {
|
|
538
|
-
createKey: t,
|
|
539
|
-
getKey: n,
|
|
540
|
-
updateKey: o,
|
|
541
|
-
deleteKey: a,
|
|
542
|
-
serialize: u,
|
|
543
|
-
deserialize: i,
|
|
544
|
-
clear: m
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
function fa(e, s, t) {
|
|
548
|
-
const n = (o, a) => {
|
|
549
|
-
if (o == null || typeof o != "object")
|
|
550
|
-
return o;
|
|
551
|
-
if (Array.isArray(o))
|
|
552
|
-
return o.map((m, r) => {
|
|
553
|
-
const c = a ? K(a, `${r}`) : `${r}`;
|
|
554
|
-
return n(m, c);
|
|
555
|
-
});
|
|
556
|
-
if ((a ? s(a) : s())?.type === "map") {
|
|
557
|
-
const m = o, r = {};
|
|
558
|
-
return Object.keys(m).forEach((c) => {
|
|
559
|
-
const v = t(c), f = m[c], p = a ? K(a, c) : c;
|
|
560
|
-
r[v] = n(f, p);
|
|
561
|
-
}), r;
|
|
562
|
-
}
|
|
563
|
-
const i = {};
|
|
564
|
-
return Object.keys(o).forEach((m) => {
|
|
565
|
-
const r = a ? K(a, m) : m;
|
|
566
|
-
i[m] = n(o[m], r);
|
|
567
|
-
}), i;
|
|
568
|
-
};
|
|
569
|
-
return n(e);
|
|
570
|
-
}
|
|
571
|
-
function pa(e, s, t) {
|
|
572
|
-
const n = (o, a) => {
|
|
573
|
-
if (o == null || typeof o != "object")
|
|
574
|
-
return o;
|
|
575
|
-
if (Array.isArray(o))
|
|
576
|
-
return o.map((m, r) => {
|
|
577
|
-
const c = a ? K(a, `${r}`) : `${r}`;
|
|
578
|
-
return n(m, c);
|
|
579
|
-
});
|
|
580
|
-
if ((a ? s(a) : s())?.type === "map") {
|
|
581
|
-
const m = o, r = {};
|
|
582
|
-
return Object.keys(m).forEach((c) => {
|
|
583
|
-
const v = c, f = m[v], p = t(v);
|
|
584
|
-
if (p == null) {
|
|
585
|
-
console.error(`[FreeForm] Missing name for key ID: ${String(v)}`);
|
|
586
|
-
return;
|
|
587
|
-
}
|
|
588
|
-
const d = p || Ye, y = a ? K(a, d) : d;
|
|
589
|
-
r[p] = n(f, y);
|
|
590
|
-
}), r;
|
|
591
|
-
}
|
|
592
|
-
const i = {};
|
|
593
|
-
return Object.keys(o).forEach((m) => {
|
|
594
|
-
const r = a ? K(a, m) : m;
|
|
595
|
-
i[m] = n(o[m], r);
|
|
596
|
-
}), i;
|
|
597
|
-
};
|
|
598
|
-
return n(e);
|
|
599
|
-
}
|
|
600
|
-
function ma(e) {
|
|
601
|
-
return /^kid:\d+$/.test(e);
|
|
602
|
-
}
|
|
603
|
-
const [va, ha] = Mt(
|
|
604
|
-
function(s) {
|
|
605
|
-
const {
|
|
606
|
-
schema: t,
|
|
607
|
-
propsData: n,
|
|
608
|
-
onChange: o,
|
|
609
|
-
propsRenderRules: a,
|
|
610
|
-
propsConfig: u
|
|
611
|
-
} = s, {
|
|
612
|
-
getDefault: i,
|
|
613
|
-
getEmptyOrDefault: m,
|
|
614
|
-
...r
|
|
615
|
-
} = aa(t, () => R(u)), c = da(r.getSchema), v = /* @__PURE__ */ new Map(), f = ot({}), p = C(() => R(u) ?? {}), d = Se();
|
|
616
|
-
Te(Ue, Tt(d, "default", we));
|
|
617
|
-
const {
|
|
618
|
-
useCurrentRules: y,
|
|
619
|
-
createComputedRules: b,
|
|
620
|
-
hasDependencies: P,
|
|
621
|
-
isFieldHidden: w
|
|
622
|
-
} = ra(r.getSchemaMap, () => f), h = y({
|
|
623
|
-
fieldPath: ce,
|
|
624
|
-
rules: a
|
|
625
|
-
});
|
|
626
|
-
function $(O) {
|
|
627
|
-
Object.keys(f).forEach((ne) => {
|
|
628
|
-
delete f[ne];
|
|
629
|
-
}), c.clear(), Object.assign(f, c.serialize(O));
|
|
630
|
-
}
|
|
631
|
-
const k = oe(!1);
|
|
632
|
-
function _(O) {
|
|
633
|
-
let ne;
|
|
634
|
-
!O || !F(R(O)) ? (k.value = !0, ne = i()) : (k.value = !1, ne = et(R(O))), tt(p.value.prepareFormData) ? $(p.value.prepareFormData(ne)) : $(ne);
|
|
635
|
-
}
|
|
636
|
-
const S = oa(t);
|
|
637
|
-
function I(O) {
|
|
638
|
-
if (w(O)) return !0;
|
|
639
|
-
const ne = S && sa(O, S);
|
|
640
|
-
return !!ne && w(ne);
|
|
641
|
-
}
|
|
642
|
-
function F(O) {
|
|
643
|
-
return tt(p.value.hasValue) ? p.value.hasValue(O) : !!O;
|
|
644
|
-
}
|
|
645
|
-
function M() {
|
|
646
|
-
const O = et(R(f));
|
|
647
|
-
return P.value && pt(
|
|
648
|
-
O,
|
|
649
|
-
I,
|
|
650
|
-
m
|
|
651
|
-
), c.deserialize(O);
|
|
652
|
-
}
|
|
653
|
-
te(f, () => {
|
|
654
|
-
o?.(M());
|
|
655
|
-
}, { deep: !0 });
|
|
656
|
-
let V = !1;
|
|
657
|
-
te(() => n?.value, (O) => {
|
|
658
|
-
V && he(M(), R(O)) || (_(O), V = !0);
|
|
659
|
-
}, { deep: !0, immediate: !0 });
|
|
660
|
-
function E(O) {
|
|
661
|
-
return O != null && typeof O == "object" && !Array.isArray(O) ? c.serialize(O) : O;
|
|
662
|
-
}
|
|
663
|
-
function W(O) {
|
|
664
|
-
return E(i(O));
|
|
665
|
-
}
|
|
666
|
-
function J(O) {
|
|
667
|
-
return E(m(O));
|
|
668
|
-
}
|
|
669
|
-
return {
|
|
670
|
-
/**
|
|
671
|
-
* The reactive form data object
|
|
672
|
-
*/
|
|
673
|
-
formData: f,
|
|
674
|
-
isSchemaDefaulted: k,
|
|
675
|
-
schema: t,
|
|
676
|
-
config: p,
|
|
677
|
-
fieldRendererRegistry: v,
|
|
678
|
-
setValue: $,
|
|
679
|
-
useCurrentRenderRules: y,
|
|
680
|
-
rootRenderRules: h,
|
|
681
|
-
createComputedRenderRules: b,
|
|
682
|
-
...r,
|
|
683
|
-
getValue: M,
|
|
684
|
-
isFieldHidden: w,
|
|
685
|
-
keyIdMap: c,
|
|
686
|
-
getDefault: W,
|
|
687
|
-
getEmptyOrDefault: J
|
|
688
|
-
};
|
|
689
|
-
}
|
|
690
|
-
);
|
|
691
|
-
function ee() {
|
|
692
|
-
const e = ha();
|
|
693
|
-
if (!e)
|
|
694
|
-
throw new Error("useFormShared() called without provider.");
|
|
695
|
-
return e;
|
|
696
|
-
}
|
|
697
|
-
function yt(e) {
|
|
698
|
-
const { getSchema: s, getEmptyValue: t, isFieldHidden: n, formData: o } = ee(), a = g(() => Xe(R(e))), u = g(() => la(a.value)), i = g(() => u.value ? s(u.value) : void 0), m = g(() => {
|
|
699
|
-
if (s(a.value)?.expressible) return !0;
|
|
700
|
-
const w = q(a.value);
|
|
701
|
-
if (w.length < 2) return !1;
|
|
702
|
-
const h = s(K(...w.slice(0, -1)));
|
|
703
|
-
return h?.type === "array" && !!h.expressible;
|
|
704
|
-
}), r = g(() => m.value && ia(i.value)), c = g({
|
|
705
|
-
get: () => u.value ? _e(o, q(u.value)) : void 0,
|
|
706
|
-
set: (w) => {
|
|
707
|
-
if (u.value) {
|
|
708
|
-
if (y.value) {
|
|
709
|
-
v(w);
|
|
710
|
-
return;
|
|
711
|
-
}
|
|
712
|
-
He(o, q(u.value), w);
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
});
|
|
716
|
-
function v(w) {
|
|
717
|
-
const h = q(u.value), $ = Number(h[h.length - 1]), k = h.slice(0, -1), _ = _e(o, q(a.value).slice(0, -1)), S = Math.max(
|
|
718
|
-
Array.isArray(_) ? _.length : 0,
|
|
719
|
-
$ + 1
|
|
720
|
-
), I = _e(o, k), F = Array.from({ length: S }, (M, V) => {
|
|
721
|
-
const E = Array.isArray(I) ? I[V] : void 0;
|
|
722
|
-
return typeof E == "string" ? E : Re;
|
|
723
|
-
});
|
|
724
|
-
F[$] = w ?? Re, He(o, k, F);
|
|
725
|
-
}
|
|
726
|
-
const f = g(() => typeof c.value == "string" && c.value !== ""), p = g(() => i.value?.expressible_kong_type), d = g(() => n(a.value)), y = g(() => {
|
|
727
|
-
if (!u.value) return !1;
|
|
728
|
-
const w = q(u.value);
|
|
729
|
-
return w.length < 2 ? !1 : s(K(...w.slice(0, -1)))?.type === "array";
|
|
730
|
-
}), b = g(() => y.value ? Re : t());
|
|
731
|
-
function P() {
|
|
732
|
-
c.value = b.value;
|
|
733
|
-
}
|
|
734
|
-
return {
|
|
735
|
-
available: r,
|
|
736
|
-
expressionPath: u,
|
|
737
|
-
schema: i,
|
|
738
|
-
value: c,
|
|
739
|
-
hasExpression: f,
|
|
740
|
-
kongType: p,
|
|
741
|
-
hide: d,
|
|
742
|
-
isArrayElement: y,
|
|
743
|
-
emptyValue: b,
|
|
744
|
-
clear: P
|
|
745
|
-
};
|
|
746
|
-
}
|
|
747
|
-
const Le = (e) => {
|
|
748
|
-
const s = be(rt, g(() => "")), t = g(() => {
|
|
749
|
-
const n = R(e);
|
|
750
|
-
let o = n;
|
|
751
|
-
return !nt(n) && s.value && (o = K(s.value, n)), nt(n) && (o = o.slice(Ve("").length)), o;
|
|
752
|
-
});
|
|
753
|
-
return Te(rt, t), t;
|
|
754
|
-
}, ya = (e) => {
|
|
755
|
-
const { getSchema: s, getSchemaMap: t, fieldRendererRegistry: n } = ee(), { default: o, ...a } = Se(), u = be(Ue), i = [we, "item", "label", "tooltip"], m = g(() => {
|
|
756
|
-
const r = R(u), c = t(), v = Object.keys(a).filter((f) => !i.includes(f)).reduce((f, p) => {
|
|
757
|
-
const d = ye(K(R(e), p), c);
|
|
758
|
-
return { ...f, [d]: a[p] };
|
|
759
|
-
}, {});
|
|
760
|
-
return r ? { ...r, ...v } : v;
|
|
761
|
-
});
|
|
762
|
-
return Te(Ue, m), g(() => {
|
|
763
|
-
if (o) return;
|
|
764
|
-
const r = R(e), c = m.value[ye(r, t())];
|
|
765
|
-
if (c) return c;
|
|
766
|
-
const v = t();
|
|
767
|
-
for (const [f, p] of n) {
|
|
768
|
-
const d = ye(r, v);
|
|
769
|
-
if (f({ path: r, genericPath: d, schema: s(r) }))
|
|
770
|
-
return p;
|
|
771
|
-
}
|
|
772
|
-
});
|
|
773
|
-
}, ba = /* @__PURE__ */ Symbol.for("kong-ui-public:entities-plugins:use-secret-input"), $e = "__FREEFORM_SCHEMA_MAP__";
|
|
774
|
-
function ga(e) {
|
|
775
|
-
const { formData: s } = ee(), t = Le(e);
|
|
776
|
-
return {
|
|
777
|
-
value: g({
|
|
778
|
-
get: () => _e(s, q(t.value)),
|
|
779
|
-
set: (o) => He(s, q(t.value), o)
|
|
780
|
-
})
|
|
781
|
-
};
|
|
782
|
-
}
|
|
783
|
-
function ae(e) {
|
|
784
|
-
const { getSchema: s, isFieldHidden: t, getEmptyOrDefault: n, getEmptyValue: o } = ee(), a = Le(e), u = ya(a), { value: i } = ga(e), m = g(() => s(a.value)), r = g(() => t(a.value)), c = g(() => n(a.value)), v = g(() => o());
|
|
785
|
-
return m.value ? {
|
|
786
|
-
schema: m,
|
|
787
|
-
path: a,
|
|
788
|
-
renderer: u,
|
|
789
|
-
value: i,
|
|
790
|
-
ancestors: ht(a),
|
|
791
|
-
/**
|
|
792
|
-
* Hide the field but keep its state.
|
|
793
|
-
*/
|
|
794
|
-
hide: r,
|
|
795
|
-
emptyOrDefaultValue: c,
|
|
796
|
-
emptyValue: v,
|
|
797
|
-
error: null
|
|
798
|
-
} : {
|
|
799
|
-
error: new Error(`path '${a.value}' is not found in schema.`)
|
|
800
|
-
};
|
|
801
|
-
}
|
|
802
|
-
function ka(e, s) {
|
|
803
|
-
const t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new Map();
|
|
804
|
-
function o() {
|
|
805
|
-
return dt(`${e}-`);
|
|
806
|
-
}
|
|
807
|
-
function a(u, i) {
|
|
808
|
-
if (u == null || typeof u != "object")
|
|
809
|
-
return `${e}-${i}`;
|
|
810
|
-
if (t.has(u))
|
|
811
|
-
return t.get(u);
|
|
812
|
-
const m = n.has(i) ? n.get(i) : o();
|
|
813
|
-
return n.set(i, m), t.set(u, m), m;
|
|
814
|
-
}
|
|
815
|
-
return te(s, (u) => {
|
|
816
|
-
const i = R(u), m = /* @__PURE__ */ new Set();
|
|
817
|
-
i.forEach((r, c) => {
|
|
818
|
-
m.add(c);
|
|
819
|
-
}), Array.from(n.keys()).forEach((r) => {
|
|
820
|
-
m.has(r) || n.delete(r);
|
|
821
|
-
});
|
|
822
|
-
}, { immediate: !0, deep: !0 }), { getKey: a };
|
|
823
|
-
}
|
|
824
|
-
function Zn(e, s) {
|
|
825
|
-
te(e, (t) => {
|
|
826
|
-
window[$e] || (window[$e] = {}), window[$e][s] = it(t);
|
|
827
|
-
}, { immediate: !0, deep: !0 }), wt(() => {
|
|
828
|
-
window[$e] && delete window[$e][s];
|
|
829
|
-
});
|
|
830
|
-
}
|
|
831
|
-
const Aa = {
|
|
832
|
-
ip: "IP",
|
|
833
|
-
ssl: "SSL",
|
|
834
|
-
ttl: "TTL",
|
|
835
|
-
url: "URL",
|
|
836
|
-
http: "HTTP",
|
|
837
|
-
https: "HTTPS",
|
|
838
|
-
api: "API",
|
|
839
|
-
uri: "URI",
|
|
840
|
-
jq: "jq",
|
|
841
|
-
vpn: "VPN",
|
|
842
|
-
id: "ID",
|
|
843
|
-
llm: "LLM",
|
|
844
|
-
tls: "TLS",
|
|
845
|
-
tcp: "TCP",
|
|
846
|
-
udp: "UDP",
|
|
847
|
-
lua: "Lua",
|
|
848
|
-
jwt: "JWT",
|
|
849
|
-
aws: "AWS",
|
|
850
|
-
gcp: "GCP",
|
|
851
|
-
azure: "Azure",
|
|
852
|
-
acl: "ACL",
|
|
853
|
-
acls: "ACLs",
|
|
854
|
-
cookie: "Cookie",
|
|
855
|
-
ai: "AI",
|
|
856
|
-
awsgateway: "AWS Gateway",
|
|
857
|
-
imds: "IMDS",
|
|
858
|
-
sts: "STS",
|
|
859
|
-
arn: "ARN",
|
|
860
|
-
json: "JSON",
|
|
861
|
-
traceid: "TraceID",
|
|
862
|
-
dmq: "DMQ",
|
|
863
|
-
ca: "CA",
|
|
864
|
-
dpop: "DPoP",
|
|
865
|
-
hs: "HS",
|
|
866
|
-
jwk: "JWK",
|
|
867
|
-
jwks: "JWKS",
|
|
868
|
-
memcached: "Memcached",
|
|
869
|
-
mtls: "mTLS",
|
|
870
|
-
redis: "Redis",
|
|
871
|
-
uris: "URIs"
|
|
872
|
-
};
|
|
873
|
-
function bt(e) {
|
|
874
|
-
return Aa[e.toLocaleLowerCase()] ?? e;
|
|
875
|
-
}
|
|
876
|
-
function gt(e) {
|
|
877
|
-
return e.split("_").map(bt).join(" ");
|
|
878
|
-
}
|
|
879
|
-
function $a(e, s) {
|
|
880
|
-
const t = be(lt, {
|
|
881
|
-
parentPath: null,
|
|
882
|
-
isolate: !1
|
|
883
|
-
}), { parentPath: n, isolate: o } = R(t), a = oe(n ? K(n, e) : e), u = oe({
|
|
884
|
-
parentPath: a.value,
|
|
885
|
-
isolate: o
|
|
886
|
-
});
|
|
887
|
-
return te([C(s), C(t)], ([i, m]) => {
|
|
888
|
-
const { parentPath: r, isolate: c } = m, v = r ? K(r, e) : e;
|
|
889
|
-
i ? {
|
|
890
|
-
isolate: () => {
|
|
891
|
-
a.value = e, u.value.isolate = !0, u.value.parentPath = null;
|
|
892
|
-
},
|
|
893
|
-
"isolate-children": () => {
|
|
894
|
-
u.value.isolate = !0, u.value.parentPath = null;
|
|
895
|
-
},
|
|
896
|
-
reset: () => {
|
|
897
|
-
a.value = e, u.value.isolate = !1, u.value.parentPath = null;
|
|
898
|
-
},
|
|
899
|
-
"reset-children": () => {
|
|
900
|
-
u.value.isolate = !1, u.value.parentPath = null;
|
|
901
|
-
},
|
|
902
|
-
inherit: () => {
|
|
903
|
-
a.value = v, u.value.isolate = !1, u.value.parentPath = v;
|
|
904
|
-
}
|
|
905
|
-
}[i]?.() : c && (a.value = e, u.value.isolate = !0, u.value.parentPath = null);
|
|
906
|
-
}, { deep: !0, immediate: !0 }), Te(lt, u), a;
|
|
907
|
-
}
|
|
908
|
-
function kt(e) {
|
|
909
|
-
return q(e).map((t) => t.split("_").map(bt).join(" ")).map(Ot).join(" › ");
|
|
910
|
-
}
|
|
911
|
-
function _a(e, s) {
|
|
912
|
-
const t = R(e), n = ve(t), { config: o, getSchema: a } = ee(), u = $a(n, s), i = ht(e);
|
|
913
|
-
return g(() => {
|
|
914
|
-
const m = u.value ?? n, r = i.value.parent?.path ? a(i.value.parent.path) : null, c = r?.type === "array", v = r?.type === "map";
|
|
915
|
-
if (c || v)
|
|
916
|
-
return "";
|
|
917
|
-
const f = kt(m);
|
|
918
|
-
return o.value.transformLabel ? o.value.transformLabel(f, t) : f;
|
|
919
|
-
});
|
|
920
|
-
}
|
|
921
|
-
function ie(e, s) {
|
|
922
|
-
const { getLabelAttributes: t, getPlaceholder: n, getSchema: o } = ee(), a = R(e), u = R(s), i = _a(e, C(() => R(s).resetLabelPath));
|
|
923
|
-
return g(() => ({
|
|
924
|
-
...u,
|
|
925
|
-
placeholder: u.placeholder ?? n(a) ?? void 0,
|
|
926
|
-
labelAttributes: u.labelAttributes ?? t(a),
|
|
927
|
-
label: u.label ?? i.value,
|
|
928
|
-
required: u.required ?? o(a)?.required
|
|
929
|
-
}));
|
|
930
|
-
}
|
|
931
|
-
function Va(e, s) {
|
|
932
|
-
const { value: t, ...n } = ae(e), { getEmptyOrDefault: o, keyIdMap: a } = ee(), u = g(() => {
|
|
933
|
-
if (n.path)
|
|
934
|
-
return n.schema.value.values;
|
|
935
|
-
}), i = g(() => t ? Object.keys(t.value || {}).map((d) => {
|
|
936
|
-
const y = d, b = a.getKey(y) ?? "";
|
|
937
|
-
return [y, b];
|
|
938
|
-
}) : []);
|
|
939
|
-
function m(p, d) {
|
|
940
|
-
t && (a.updateKey(p, d), t.value = { ...t.value });
|
|
941
|
-
}
|
|
942
|
-
function r() {
|
|
943
|
-
if (!t) return;
|
|
944
|
-
const p = a.createKey(), d = o(K(n.path.value, p));
|
|
945
|
-
return t.value = {
|
|
946
|
-
...t.value,
|
|
947
|
-
[p]: d
|
|
948
|
-
}, p;
|
|
949
|
-
}
|
|
950
|
-
function c(p) {
|
|
951
|
-
if (a.deleteKey(p), !t) return;
|
|
952
|
-
const { [p]: d, ...y } = t.value || {};
|
|
953
|
-
Object.keys(y).length === 0 ? t.value = n.schema?.value?.required ? {} : n.emptyValue.value : t.value = y;
|
|
954
|
-
}
|
|
955
|
-
function v(p) {
|
|
956
|
-
return a.getKey(p);
|
|
957
|
-
}
|
|
958
|
-
const f = g(() => {
|
|
959
|
-
if (!n.path) return "";
|
|
960
|
-
const p = ve(n.path.value);
|
|
961
|
-
let d = p;
|
|
962
|
-
return ma(p) && (d = a.getKey(p) ?? ""), gt(d);
|
|
963
|
-
});
|
|
964
|
-
if (s && u.value?.type === "string") {
|
|
965
|
-
let p = function() {
|
|
966
|
-
if (!t || !t.value) return null;
|
|
967
|
-
const y = {};
|
|
968
|
-
for (const [b, P] of Object.entries(t.value)) {
|
|
969
|
-
const w = a.getKey(b);
|
|
970
|
-
w && (y[w] = P);
|
|
971
|
-
}
|
|
972
|
-
return y;
|
|
973
|
-
}, d = null;
|
|
974
|
-
te(() => t?.value, (y) => {
|
|
975
|
-
const b = p();
|
|
976
|
-
he(d, b) || (d = b, s?.(b));
|
|
977
|
-
}, { deep: !0 });
|
|
978
|
-
}
|
|
979
|
-
return {
|
|
980
|
-
keys: i,
|
|
981
|
-
updateKey: m,
|
|
982
|
-
addKey: r,
|
|
983
|
-
removeKey: c,
|
|
984
|
-
field: n,
|
|
985
|
-
fieldDisplayName: f,
|
|
986
|
-
getKeyName: v
|
|
987
|
-
};
|
|
988
|
-
}
|
|
989
|
-
const Sa = { add_entity: "Add {entity}", remove_entity: "Remove {entity}", enabled: "Enabled", disabled: "Disabled" }, wa = { at_least_one_of: "At least one of the following values is required: {parameters}.", mutually_required: "These values must be used together: {parameters}.", mutually_exclusive: "Only one of these values can be used: {parameters}." }, Ea = "Use comma to separate values. eg: value1, value2", Pa = "Enter a UUID of {entity}", Fa = { component_error: "The vault secret picker is not available" }, ja = { add: "Add expression", remove: "Remove expression", label: "Kong plug-in dynamic expression", info: "Supply this value as an expression that is evaluated on every request. When set, it takes priority over the value entered above.", help: { text: "Define a Kong plug-in dynamic expression to evaluate each request. The expression must return {type}. {link}", learn: "Learn more" }, returns: { string: "a string", number: "a number", integer: "an integer", boolean: "a boolean value (true or false)", unknown: "a value of the type of the field above" } }, Ta = {
|
|
990
|
-
actions: Sa,
|
|
991
|
-
field_rules: wa,
|
|
992
|
-
tag_helper: Ea,
|
|
993
|
-
foreign_placeholder: Pa,
|
|
994
|
-
vault_picker: Fa,
|
|
995
|
-
expression: ja
|
|
996
|
-
};
|
|
997
|
-
function me() {
|
|
998
|
-
const e = zt("en-us", Ta);
|
|
999
|
-
return {
|
|
1000
|
-
i18n: e,
|
|
1001
|
-
i18nT: Wt(e)
|
|
1002
|
-
};
|
|
1003
|
-
}
|
|
1004
|
-
const Ae = /* @__PURE__ */ U({
|
|
1005
|
-
__name: "EnhancedInput",
|
|
1006
|
-
props: {
|
|
1007
|
-
modelValue: {},
|
|
1008
|
-
multiline: { type: Boolean },
|
|
1009
|
-
secret: { type: Boolean }
|
|
1010
|
-
},
|
|
1011
|
-
emits: ["update:modelValue"],
|
|
1012
|
-
setup(e, { emit: s }) {
|
|
1013
|
-
const t = e, n = ke(), o = s, a = g(() => t.multiline ? xt : t.secret ? Jt : Lt), u = g(() => n.characterLimit ?? (t.multiline ? !1 : void 0)), i = oe(t.modelValue);
|
|
1014
|
-
te(() => t.modelValue, (v) => {
|
|
1015
|
-
i.value = v;
|
|
1016
|
-
});
|
|
1017
|
-
const { config: m } = ee(), r = (v) => {
|
|
1018
|
-
v !== i.value && (i.value = v, m.value.updateOnChange || o("update:modelValue", v));
|
|
1019
|
-
}, c = () => {
|
|
1020
|
-
m.value.updateOnChange && o("update:modelValue", i.value);
|
|
1021
|
-
};
|
|
1022
|
-
return (v, f) => (A(), j(l(a), G(v.$attrs, {
|
|
1023
|
-
"character-limit": u.value,
|
|
1024
|
-
"model-value": e.modelValue,
|
|
1025
|
-
resizable: e.multiline ? !0 : void 0,
|
|
1026
|
-
onChange: c,
|
|
1027
|
-
"onUpdate:modelValue": r
|
|
1028
|
-
}), Z({ _: 2 }, [
|
|
1029
|
-
de(Se(), (p, d) => ({
|
|
1030
|
-
name: d,
|
|
1031
|
-
fn: T((y) => [
|
|
1032
|
-
B(v.$slots, d, We(ut(y)))
|
|
1033
|
-
])
|
|
1034
|
-
}))
|
|
1035
|
-
]), 1040, ["character-limit", "model-value", "resizable"]));
|
|
1036
|
-
}
|
|
1037
|
-
}), Oa = ["innerHTML"], Ma = /* @__PURE__ */ U({
|
|
1038
|
-
inheritAttrs: !1,
|
|
1039
|
-
__name: "StringField",
|
|
1040
|
-
props: {
|
|
1041
|
-
labelAttributes: {},
|
|
1042
|
-
multiline: { type: Boolean },
|
|
1043
|
-
showVaultSecretPicker: { type: Boolean, default: () => {
|
|
1044
|
-
} },
|
|
1045
|
-
showPasswordMaskToggle: { type: Boolean, default: () => {
|
|
1046
|
-
} },
|
|
1047
|
-
type: {},
|
|
1048
|
-
placeholder: {},
|
|
1049
|
-
inputId: {},
|
|
1050
|
-
inlineVaultPicker: { type: Boolean },
|
|
1051
|
-
modelValue: {},
|
|
1052
|
-
label: {},
|
|
1053
|
-
help: {},
|
|
1054
|
-
error: { type: Boolean },
|
|
1055
|
-
errorMessage: {},
|
|
1056
|
-
characterLimit: {},
|
|
1057
|
-
hasError: { type: Boolean },
|
|
1058
|
-
autofocus: { type: Boolean },
|
|
1059
|
-
name: {}
|
|
1060
|
-
},
|
|
1061
|
-
emits: ["update:modelValue"],
|
|
1062
|
-
setup(e, { emit: s }) {
|
|
1063
|
-
const t = ke(), { i18n: n } = me(), o = be(ba, g(() => !1)), a = fe(e, ["autofocus", "showVaultSecretPicker", "showPasswordMaskToggle", "name"]), u = s, { value: i, hide: m, ...r } = ae(C(() => e.name)), c = ie(r.path, C({ ...a, ...t }));
|
|
1064
|
-
function v(P) {
|
|
1065
|
-
i.value = P === "" ? r.emptyValue.value : P, u("update:modelValue", i.value);
|
|
1066
|
-
}
|
|
1067
|
-
const f = g(() => e.showPasswordMaskToggle !== void 0 ? e.showPasswordMaskToggle : a.type === "password" ? !0 : !!(r.schema?.value).encrypted), p = be(ft, void 0), d = g(() => e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!r.schema.value?.referenceable), y = g(() => ({ referenceable: d.value })), b = g(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : ve(e.name) === "name");
|
|
1068
|
-
return (P, w) => {
|
|
1069
|
-
const h = H("KAlert");
|
|
1070
|
-
return r.error ? (A(), j(h, {
|
|
1071
|
-
key: 0,
|
|
1072
|
-
appearance: "danger",
|
|
1073
|
-
message: r.error.message
|
|
1074
|
-
}, null, 8, ["message"])) : X((A(), L("div", We(G({ key: 1 }, P.$attrs)), [
|
|
1075
|
-
x(Ae, G(l(c), {
|
|
1076
|
-
id: e.inputId,
|
|
1077
|
-
class: "ff-string-field",
|
|
1078
|
-
"data-1p-ignore": b.value,
|
|
1079
|
-
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
1080
|
-
"data-testid": `ff-${r.path.value}`,
|
|
1081
|
-
error: e.error,
|
|
1082
|
-
"error-message": e.errorMessage,
|
|
1083
|
-
help: e.multiline && e.error ? e.errorMessage : e.help,
|
|
1084
|
-
"model-value": l(i) ?? "",
|
|
1085
|
-
multiline: e.multiline,
|
|
1086
|
-
placeholder: e.placeholder ?? l(c).placeholder,
|
|
1087
|
-
secret: f.value && l(o),
|
|
1088
|
-
"show-password-mask-toggle": f.value && !l(o),
|
|
1089
|
-
type: f.value && !l(o) ? "password" : f.value ? void 0 : "text",
|
|
1090
|
-
"onUpdate:modelValue": v
|
|
1091
|
-
}), Z({ _: 2 }, [
|
|
1092
|
-
l(c).labelAttributes?.info ? {
|
|
1093
|
-
name: "label-tooltip",
|
|
1094
|
-
fn: T(() => [
|
|
1095
|
-
B(P.$slots, "tooltip", {}, () => [
|
|
1096
|
-
N("div", {
|
|
1097
|
-
innerHTML: l(c).labelAttributes.info
|
|
1098
|
-
}, null, 8, Oa)
|
|
1099
|
-
], !0)
|
|
1100
|
-
]),
|
|
1101
|
-
key: "0"
|
|
1102
|
-
} : void 0,
|
|
1103
|
-
!(e.multiline && e.error) && P.$slots.help ? {
|
|
1104
|
-
name: "help",
|
|
1105
|
-
fn: T(() => [
|
|
1106
|
-
B(P.$slots, "help", {}, void 0, !0)
|
|
1107
|
-
]),
|
|
1108
|
-
key: "1"
|
|
1109
|
-
} : void 0,
|
|
1110
|
-
!e.multiline && e.inlineVaultPicker ? {
|
|
1111
|
-
name: "after",
|
|
1112
|
-
fn: T(() => [
|
|
1113
|
-
l(p) && d.value ? (A(), j(re(l(p)), {
|
|
1114
|
-
key: 0,
|
|
1115
|
-
schema: y.value,
|
|
1116
|
-
update: v,
|
|
1117
|
-
value: l(i) ?? ""
|
|
1118
|
-
}, null, 8, ["schema", "value"])) : z("", !0),
|
|
1119
|
-
d.value && !l(p) ? (A(), j(h, {
|
|
1120
|
-
key: 1,
|
|
1121
|
-
appearance: "warning",
|
|
1122
|
-
"data-testid": `ff-vault-secret-picker-warning-${r.path.value}`,
|
|
1123
|
-
message: l(n).t("vault_picker.component_error")
|
|
1124
|
-
}, null, 8, ["data-testid", "message"])) : z("", !0)
|
|
1125
|
-
]),
|
|
1126
|
-
key: "2"
|
|
1127
|
-
} : void 0
|
|
1128
|
-
]), 1040, ["id", "data-1p-ignore", "data-autofocus", "data-testid", "error", "error-message", "help", "model-value", "multiline", "placeholder", "secret", "show-password-mask-toggle", "type"]),
|
|
1129
|
-
e.inlineVaultPicker ? z("", !0) : (A(), L(le, { key: 0 }, [
|
|
1130
|
-
l(p) && d.value ? (A(), j(re(l(p)), {
|
|
1131
|
-
key: 0,
|
|
1132
|
-
schema: y.value,
|
|
1133
|
-
update: v,
|
|
1134
|
-
value: l(i) ?? ""
|
|
1135
|
-
}, null, 8, ["schema", "value"])) : z("", !0),
|
|
1136
|
-
d.value && !l(p) ? (A(), j(h, {
|
|
1137
|
-
key: 1,
|
|
1138
|
-
appearance: "warning",
|
|
1139
|
-
"data-testid": `ff-vault-secret-picker-warning-${r.path.value}`,
|
|
1140
|
-
message: l(n).t("vault_picker.component_error")
|
|
1141
|
-
}, null, 8, ["data-testid", "message"])) : z("", !0)
|
|
1142
|
-
], 64))
|
|
1143
|
-
], 16)), [
|
|
1144
|
-
[Q, !l(m)]
|
|
1145
|
-
]);
|
|
1146
|
-
};
|
|
1147
|
-
}
|
|
1148
|
-
}), Y = (e, s) => {
|
|
1149
|
-
const t = e.__vccOpts || e;
|
|
1150
|
-
for (const [n, o] of s)
|
|
1151
|
-
t[n] = o;
|
|
1152
|
-
return t;
|
|
1153
|
-
}, Qe = /* @__PURE__ */ Y(Ma, [["__scopeId", "data-v-8137d7ae"]]), Ia = {
|
|
1154
|
-
jqlang: "https://jqlang.org/manual/",
|
|
1155
|
-
condition: "https://developer.konghq.com/gateway/plugins/expressions/",
|
|
1156
|
-
customPluginSandboxing: "https://developer.konghq.com/gateway/sandboxing/",
|
|
1157
|
-
pluginPriority: "https://developer.konghq.com/gateway/entities/plugin/#plugin-priority",
|
|
1158
|
-
customPluginInstalled: "https://developer.konghq.com/custom-plugins/konnect-hybrid-mode/",
|
|
1159
|
-
customPluginStreamed: "https://developer.konghq.com/custom-plugins/streaming-plugins/"
|
|
1160
|
-
}, Ka = ["data-expression-for", "data-testid"], xa = {
|
|
1161
|
-
key: 1,
|
|
1162
|
-
class: "ff-expression-editor-expanded"
|
|
1163
|
-
}, La = /* @__PURE__ */ U({
|
|
1164
|
-
name: "ExpressionEditor",
|
|
1165
|
-
__name: "ExpressionEditor",
|
|
1166
|
-
props: {
|
|
1167
|
-
name: {},
|
|
1168
|
-
placeholder: {}
|
|
1169
|
-
},
|
|
1170
|
-
setup(e) {
|
|
1171
|
-
const { i18n: s, i18nT: t } = me(), n = Le(C(() => e.name)), o = yt(n), a = g(() => Ve(o.expressionPath.value)), u = oe(o.hasExpression.value);
|
|
1172
|
-
te(o.hasExpression, (f) => {
|
|
1173
|
-
f && (u.value = !0);
|
|
1174
|
-
});
|
|
1175
|
-
const i = {
|
|
1176
|
-
string: "expression.returns.string",
|
|
1177
|
-
number: "expression.returns.number",
|
|
1178
|
-
integer: "expression.returns.integer",
|
|
1179
|
-
boolean: "expression.returns.boolean"
|
|
1180
|
-
}, m = g(() => {
|
|
1181
|
-
const f = o.kongType.value;
|
|
1182
|
-
return f && f in i ? i[f] : "expression.returns.unknown";
|
|
1183
|
-
}), r = g(() => ({
|
|
1184
|
-
info: s.t("expression.info"),
|
|
1185
|
-
tooltipAttributes: { maxWidth: "300px", placement: "top" },
|
|
1186
|
-
"data-testid": `ff-expression-label-${n.value}`
|
|
1187
|
-
}));
|
|
1188
|
-
function c(f) {
|
|
1189
|
-
o.value.value = f;
|
|
1190
|
-
}
|
|
1191
|
-
function v() {
|
|
1192
|
-
o.clear(), u.value = !1;
|
|
1193
|
-
}
|
|
1194
|
-
return (f, p) => l(o).available.value ? X((A(), L("div", {
|
|
1195
|
-
key: 0,
|
|
1196
|
-
class: "ff-expression-editor",
|
|
1197
|
-
"data-expression-for": l(o).expressionPath.value,
|
|
1198
|
-
"data-testid": `ff-expression-${l(n)}`
|
|
1199
|
-
}, [
|
|
1200
|
-
u.value ? (A(), L("div", xa, [
|
|
1201
|
-
x(Qe, {
|
|
1202
|
-
class: "ff-expression-editor-input",
|
|
1203
|
-
label: l(s).t("expression.label"),
|
|
1204
|
-
"label-attributes": r.value,
|
|
1205
|
-
multiline: "",
|
|
1206
|
-
name: a.value,
|
|
1207
|
-
placeholder: e.placeholder ?? "",
|
|
1208
|
-
rows: 3,
|
|
1209
|
-
"onUpdate:modelValue": c
|
|
1210
|
-
}, {
|
|
1211
|
-
help: T(() => [
|
|
1212
|
-
B(f.$slots, "help", {}, () => [
|
|
1213
|
-
x(l(t), { keypath: "expression.help.text" }, {
|
|
1214
|
-
type: T(() => [
|
|
1215
|
-
ue(se(l(s).t(m.value)), 1)
|
|
1216
|
-
]),
|
|
1217
|
-
link: T(() => [
|
|
1218
|
-
x(l(Rt), {
|
|
1219
|
-
"hide-icon": "",
|
|
1220
|
-
href: l(Ia).condition
|
|
1221
|
-
}, {
|
|
1222
|
-
default: T(() => [
|
|
1223
|
-
ue(se(l(s).t("expression.help.learn")), 1)
|
|
1224
|
-
]),
|
|
1225
|
-
_: 1
|
|
1226
|
-
}, 8, ["href"])
|
|
1227
|
-
]),
|
|
1228
|
-
_: 1
|
|
1229
|
-
})
|
|
1230
|
-
], !0)
|
|
1231
|
-
]),
|
|
1232
|
-
_: 3
|
|
1233
|
-
}, 8, ["label", "label-attributes", "name", "placeholder"]),
|
|
1234
|
-
x(l(at), {
|
|
1235
|
-
appearance: "tertiary",
|
|
1236
|
-
"aria-label": l(s).t("expression.remove"),
|
|
1237
|
-
class: "ff-expression-editor-remove",
|
|
1238
|
-
"data-testid": `ff-expression-remove-${l(n)}`,
|
|
1239
|
-
icon: "",
|
|
1240
|
-
onClick: v
|
|
1241
|
-
}, {
|
|
1242
|
-
default: T(() => [
|
|
1243
|
-
x(l(Je))
|
|
1244
|
-
]),
|
|
1245
|
-
_: 1
|
|
1246
|
-
}, 8, ["aria-label", "data-testid"])
|
|
1247
|
-
])) : (A(), j(l(at), {
|
|
1248
|
-
key: 0,
|
|
1249
|
-
appearance: "tertiary",
|
|
1250
|
-
class: "ff-expression-editor-add",
|
|
1251
|
-
"data-testid": `ff-expression-add-${l(n)}`,
|
|
1252
|
-
onClick: p[0] || (p[0] = (d) => u.value = !0)
|
|
1253
|
-
}, {
|
|
1254
|
-
default: T(() => [
|
|
1255
|
-
x(l(je)),
|
|
1256
|
-
ue(" " + se(l(s).t("expression.add")), 1)
|
|
1257
|
-
]),
|
|
1258
|
-
_: 1
|
|
1259
|
-
}, 8, ["data-testid"]))
|
|
1260
|
-
], 8, Ka)), [
|
|
1261
|
-
[Q, !l(o).hide.value]
|
|
1262
|
-
]) : z("", !0);
|
|
1263
|
-
}
|
|
1264
|
-
}), Ra = /* @__PURE__ */ Y(La, [["__scopeId", "data-v-546acf64"]]), Ca = ["innerHTML"], Ba = /* @__PURE__ */ U({
|
|
1265
|
-
inheritAttrs: !1,
|
|
1266
|
-
__name: "BooleanField",
|
|
1267
|
-
props: {
|
|
1268
|
-
labelAttributes: {},
|
|
1269
|
-
modelValue: { type: Boolean },
|
|
1270
|
-
autofocus: { type: Boolean },
|
|
1271
|
-
name: {}
|
|
1272
|
-
},
|
|
1273
|
-
emits: ["update:modelValue"],
|
|
1274
|
-
setup(e, { emit: s }) {
|
|
1275
|
-
const t = fe(e, ["autofocus", "name"]), { value: n, hide: o, emptyOrDefaultValue: a, ...u } = ae(C(() => e.name)), i = s, m = (c) => {
|
|
1276
|
-
n.value = c, i("update:modelValue", c);
|
|
1277
|
-
}, r = ie(u.path, t);
|
|
1278
|
-
return (c, v) => {
|
|
1279
|
-
const f = H("KAlert");
|
|
1280
|
-
return u.error ? (A(), j(f, {
|
|
1281
|
-
key: 0,
|
|
1282
|
-
appearance: "danger",
|
|
1283
|
-
message: u.error.message
|
|
1284
|
-
}, null, 8, ["message"])) : X((A(), j(l(Ct), G({ key: 1 }, { ...l(r), ...c.$attrs }, {
|
|
1285
|
-
class: "ff-boolean-field",
|
|
1286
|
-
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
1287
|
-
"data-testid": `ff-${u.path.value}`,
|
|
1288
|
-
"model-value": !!(l(n) == null ? l(a) : l(n)),
|
|
1289
|
-
"onUpdate:modelValue": m
|
|
1290
|
-
}), Z({ _: 2 }, [
|
|
1291
|
-
l(r).labelAttributes?.info ? {
|
|
1292
|
-
name: "tooltip",
|
|
1293
|
-
fn: T(() => [
|
|
1294
|
-
B(c.$slots, "tooltip", {}, () => [
|
|
1295
|
-
N("div", {
|
|
1296
|
-
innerHTML: l(r).labelAttributes.info
|
|
1297
|
-
}, null, 8, Ca)
|
|
1298
|
-
], !0)
|
|
1299
|
-
]),
|
|
1300
|
-
key: "0"
|
|
1301
|
-
} : void 0
|
|
1302
|
-
]), 1040, ["data-autofocus", "data-testid", "model-value"])), [
|
|
1303
|
-
[Q, !l(o)]
|
|
1304
|
-
]);
|
|
1305
|
-
};
|
|
1306
|
-
}
|
|
1307
|
-
}), Da = /* @__PURE__ */ Y(Ba, [["__scopeId", "data-v-f6cc432b"]]), qa = ["data-testid"], Ha = ["innerHTML"], Na = /* @__PURE__ */ U({
|
|
1308
|
-
inheritAttrs: !1,
|
|
1309
|
-
__name: "StringArrayField",
|
|
1310
|
-
props: {
|
|
1311
|
-
labelAttributes: {},
|
|
1312
|
-
multiline: { type: Boolean },
|
|
1313
|
-
autofocus: { type: Boolean },
|
|
1314
|
-
name: {}
|
|
1315
|
-
},
|
|
1316
|
-
emits: ["update:modelValue"],
|
|
1317
|
-
setup(e, { emit: s }) {
|
|
1318
|
-
const t = ke(), n = fe(e, ["autofocus", "name"]), o = s, { value: a, hide: u, ...i } = ae(C(() => e.name)), m = ie(i.path, C({ ...n, ...t })), r = g(() => i.schema?.value?.len_min && i.schema.value.len_min > 0), c = oe("");
|
|
1319
|
-
function v(y) {
|
|
1320
|
-
return y.map((b) => b.trim()).filter(Boolean).join(", ");
|
|
1321
|
-
}
|
|
1322
|
-
function f(y) {
|
|
1323
|
-
return y.trim().split(",").map((b) => b.trim()).filter(Boolean);
|
|
1324
|
-
}
|
|
1325
|
-
function p(y) {
|
|
1326
|
-
c.value = y;
|
|
1327
|
-
const b = f(y), P = !b.length && r.value ? i.emptyValue.value : b;
|
|
1328
|
-
a.value = P, o("update:modelValue", P);
|
|
1329
|
-
}
|
|
1330
|
-
const d = g(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : ve(e.name) === "name");
|
|
1331
|
-
return te(a, (y) => {
|
|
1332
|
-
const b = y ? v(y) : "";
|
|
1333
|
-
v(f(c.value)) !== b && (c.value = b);
|
|
1334
|
-
}, { immediate: !0 }), (y, b) => {
|
|
1335
|
-
const P = H("KAlert");
|
|
1336
|
-
return i.error ? (A(), j(P, {
|
|
1337
|
-
key: 0,
|
|
1338
|
-
appearance: "danger",
|
|
1339
|
-
message: i.error.message
|
|
1340
|
-
}, null, 8, ["message"])) : X((A(), L("div", {
|
|
1341
|
-
key: 1,
|
|
1342
|
-
"data-testid": `ff-tag-${i.path.value}`
|
|
1343
|
-
}, [
|
|
1344
|
-
x(Ae, G(l(m), {
|
|
1345
|
-
class: "ff-tag-field",
|
|
1346
|
-
"data-1p-ignore": d.value,
|
|
1347
|
-
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
1348
|
-
"data-testid": `ff-${i.path.value}`,
|
|
1349
|
-
"model-value": c.value ?? "",
|
|
1350
|
-
"onUpdate:modelValue": p
|
|
1351
|
-
}), Z({ _: 2 }, [
|
|
1352
|
-
l(m).labelAttributes?.info ? {
|
|
1353
|
-
name: "label-tooltip",
|
|
1354
|
-
fn: T(() => [
|
|
1355
|
-
B(y.$slots, "tooltip", {}, () => [
|
|
1356
|
-
N("div", {
|
|
1357
|
-
innerHTML: l(m).labelAttributes.info
|
|
1358
|
-
}, null, 8, Ha)
|
|
1359
|
-
], !0)
|
|
1360
|
-
]),
|
|
1361
|
-
key: "0"
|
|
1362
|
-
} : void 0
|
|
1363
|
-
]), 1040, ["data-1p-ignore", "data-autofocus", "data-testid", "model-value"])
|
|
1364
|
-
], 8, qa)), [
|
|
1365
|
-
[Q, !l(u)]
|
|
1366
|
-
]);
|
|
1367
|
-
};
|
|
1368
|
-
}
|
|
1369
|
-
}), At = /* @__PURE__ */ Y(Na, [["__scopeId", "data-v-3fdd5d5a"]]), Ua = ["data-appearance", "data-testid"], za = ["data-testid"], Wa = ["innerHTML"], Ja = ["data-testid"], Ga = { class: "ff-array-field-item-content" }, Ya = ["data-index", "data-testid"], Ce = 'input:not(:disabled), textarea:not(:disabled), select:not(:disabled), button:not(:disabled), [contenteditable="true"], [tabindex]:not([tabindex="-1"]):not(:disabled)', Xa = /* @__PURE__ */ U({
|
|
1370
|
-
__name: "ArrayField",
|
|
1371
|
-
props: {
|
|
1372
|
-
name: {},
|
|
1373
|
-
items: {},
|
|
1374
|
-
label: {},
|
|
1375
|
-
labelAttributes: {},
|
|
1376
|
-
itemLabel: { type: [String, Function] },
|
|
1377
|
-
addItemLabel: {},
|
|
1378
|
-
appearance: {},
|
|
1379
|
-
stickyTabs: { type: [Boolean, String, Number] },
|
|
1380
|
-
hideLabel: { type: Boolean },
|
|
1381
|
-
autofocus: { type: Boolean }
|
|
1382
|
-
},
|
|
1383
|
-
emits: ["add", "remove"],
|
|
1384
|
-
setup(e, { emit: s }) {
|
|
1385
|
-
Et((V) => ({
|
|
1386
|
-
dbeaa1a6: M.value
|
|
1387
|
-
}));
|
|
1388
|
-
const t = e, n = s, { i18n: { t: o } } = me(), { getDefault: a, getSchema: u } = ee(), { value: i, hide: m, ...r } = ae(C(t, "name")), c = ie(r.path, C({ ...t, ...ke() })), v = g(() => {
|
|
1389
|
-
if (!r.path) throw new Error("Field path is required for sub-schema retrieval");
|
|
1390
|
-
const V = u(r.path.value);
|
|
1391
|
-
if (!V) throw new Error(`Schema not found for path: ${r.path.value}`);
|
|
1392
|
-
return V.elements;
|
|
1393
|
-
}), f = g(() => {
|
|
1394
|
-
if (!r.path) return "";
|
|
1395
|
-
const V = ve(r.path.value);
|
|
1396
|
-
return gt(V);
|
|
1397
|
-
}), p = g(() => t.addItemLabel ?? o("actions.add_entity", { entity: f.value })), d = g(() => t.items ?? R(i) ?? []), { getKey: y } = ka("ff-array-field", d), b = g(() => t.appearance ? t.appearance : v.value.type === "record" || v.value.type === "map" ? "card" : "default"), P = g(() => b.value === "card" ? Ne : "div");
|
|
1398
|
-
function w(V, E) {
|
|
1399
|
-
return typeof t.itemLabel == "function" ? t.itemLabel(V, E) : t.itemLabel || c.value.label || `Item #${E}`;
|
|
1400
|
-
}
|
|
1401
|
-
const h = g(() => d.value.map((V, E) => ({
|
|
1402
|
-
hash: `#${y(V, E)}`,
|
|
1403
|
-
title: ""
|
|
1404
|
-
}))), $ = oe(h.value[0]?.hash), k = async () => {
|
|
1405
|
-
const V = a(K(r.path.value, Ge));
|
|
1406
|
-
Array.isArray(i.value) || (i.value = []), i.value.push(V), n("add"), t.appearance === "tabs" && (await Be(), $.value = h.value[h.value.length - 1]?.hash), await Be(), I(d.value.length + 1);
|
|
1407
|
-
}, _ = async (V) => {
|
|
1408
|
-
Array.isArray(i.value) && (i.value.splice(V, 1), i.value.length === 0 && !c.value.required && (i.value = r.emptyValue.value)), n("remove", V), t.appearance === "tabs" && ($.value = h.value[Math.max(0, V - 1)]?.hash);
|
|
1409
|
-
}, S = ct("root");
|
|
1410
|
-
function I(V) {
|
|
1411
|
-
if (!S.value)
|
|
1412
|
-
return;
|
|
1413
|
-
const E = Math.max(0, Math.min(V, d.value.length - 1)), W = S.value.querySelector(`[data-index="${E}"]`);
|
|
1414
|
-
if (!W)
|
|
1415
|
-
return;
|
|
1416
|
-
F(W)?.focus();
|
|
1417
|
-
}
|
|
1418
|
-
function F(V) {
|
|
1419
|
-
const E = V.querySelector('[data-autofocus="true"]');
|
|
1420
|
-
return E ? E.matches(Ce) ? E : E.querySelector(Ce) : V.querySelector(Ce);
|
|
1421
|
-
}
|
|
1422
|
-
const M = g(() => {
|
|
1423
|
-
const { appearance: V, stickyTabs: E } = t;
|
|
1424
|
-
return V !== "tabs" || E == null || E === !1 ? null : typeof E == "number" ? `${t.stickyTabs}px` : typeof E == "string" ? E : "0";
|
|
1425
|
-
});
|
|
1426
|
-
return (V, E) => {
|
|
1427
|
-
const W = H("KAlert"), J = H("KLabel"), O = H("KButton"), ne = H("KTooltip"), _t = H("KTabs");
|
|
1428
|
-
return r.error ? (A(), j(W, {
|
|
1429
|
-
key: 0,
|
|
1430
|
-
appearance: "danger",
|
|
1431
|
-
message: r.error.message
|
|
1432
|
-
}, null, 8, ["message"])) : X((A(), L("div", {
|
|
1433
|
-
key: 1,
|
|
1434
|
-
ref_key: "root",
|
|
1435
|
-
ref: S,
|
|
1436
|
-
class: Pe(["ff-array-field", {
|
|
1437
|
-
[`ff-array-field-${b.value ?? "default"}`]: !0,
|
|
1438
|
-
"ff-array-field-sticky-tabs": e.stickyTabs
|
|
1439
|
-
}]),
|
|
1440
|
-
"data-appearance": b.value,
|
|
1441
|
-
"data-testid": `ff-array-${r.path.value}`
|
|
1442
|
-
}, [
|
|
1443
|
-
l(c).label && !e.hideLabel ? (A(), L("header", {
|
|
1444
|
-
key: 0,
|
|
1445
|
-
class: "ff-array-field-header",
|
|
1446
|
-
"data-testid": `ff-array-header-${r.path.value}`
|
|
1447
|
-
}, [
|
|
1448
|
-
x(J, G({ class: "ff-array-field-label" }, l(c), {
|
|
1449
|
-
"data-testid": `ff-label-${r.path.value}`,
|
|
1450
|
-
"tooltip-attributes": l(c).labelAttributes.tooltipAttributes
|
|
1451
|
-
}), Z({
|
|
1452
|
-
default: T(() => [
|
|
1453
|
-
B(V.$slots, "label", {
|
|
1454
|
-
label: l(c).label
|
|
1455
|
-
}, () => [
|
|
1456
|
-
ue(se(l(c).label), 1)
|
|
1457
|
-
], !0)
|
|
1458
|
-
]),
|
|
1459
|
-
_: 2
|
|
1460
|
-
}, [
|
|
1461
|
-
l(c).labelAttributes?.info ? {
|
|
1462
|
-
name: "tooltip",
|
|
1463
|
-
fn: T(() => [
|
|
1464
|
-
B(V.$slots, "tooltip", {}, () => [
|
|
1465
|
-
N("div", {
|
|
1466
|
-
innerHTML: l(c).labelAttributes.info
|
|
1467
|
-
}, null, 8, Wa)
|
|
1468
|
-
], !0)
|
|
1469
|
-
]),
|
|
1470
|
-
key: "0"
|
|
1471
|
-
} : void 0
|
|
1472
|
-
]), 1040, ["data-testid", "tooltip-attributes"]),
|
|
1473
|
-
e.appearance === "tabs" ? (A(), j(O, {
|
|
1474
|
-
key: 0,
|
|
1475
|
-
appearance: "tertiary",
|
|
1476
|
-
"aria-label": p.value,
|
|
1477
|
-
"data-testid": `ff-add-item-btn-${r.path.value}`,
|
|
1478
|
-
icon: "",
|
|
1479
|
-
onClick: k
|
|
1480
|
-
}, {
|
|
1481
|
-
default: T(() => [
|
|
1482
|
-
x(l(je))
|
|
1483
|
-
]),
|
|
1484
|
-
_: 1
|
|
1485
|
-
}, 8, ["aria-label", "data-testid"])) : z("", !0)
|
|
1486
|
-
], 8, za)) : z("", !0),
|
|
1487
|
-
b.value !== "tabs" ? (A(), L(le, { key: 1 }, [
|
|
1488
|
-
N("div", {
|
|
1489
|
-
class: "ff-array-field-container",
|
|
1490
|
-
"data-testid": `ff-array-basic-container-${r.path.value}`
|
|
1491
|
-
}, [
|
|
1492
|
-
(A(!0), L(le, null, de(d.value, (pe, D) => (A(), j(l(P), {
|
|
1493
|
-
key: l(y)(pe, D),
|
|
1494
|
-
class: Pe(["ff-array-field-item", { "ff-array-field-item-card": b.value === "card" }]),
|
|
1495
|
-
"data-index": D,
|
|
1496
|
-
"data-testid": `ff-array-item-${r.path.value}.${D}`
|
|
1497
|
-
}, {
|
|
1498
|
-
default: T(() => [
|
|
1499
|
-
N("div", Ga, [
|
|
1500
|
-
V.$slots.item ? B(V.$slots, "item", {
|
|
1501
|
-
autofocus: !0,
|
|
1502
|
-
fieldName: String(D),
|
|
1503
|
-
index: D
|
|
1504
|
-
}, void 0, !0, 0) : v.value.type === "array" && v.value.elements.type === "string" ? (A(), j(At, {
|
|
1505
|
-
key: 1,
|
|
1506
|
-
autofocus: "",
|
|
1507
|
-
help: l(o)("tag_helper"),
|
|
1508
|
-
name: String(D)
|
|
1509
|
-
}, null, 8, ["help", "name"])) : (A(), j(ge, {
|
|
1510
|
-
key: 2,
|
|
1511
|
-
autofocus: "",
|
|
1512
|
-
name: String(D)
|
|
1513
|
-
}, null, 8, ["name"]))
|
|
1514
|
-
]),
|
|
1515
|
-
x(ne, {
|
|
1516
|
-
class: "ff-array-field-item-remove-tooltip",
|
|
1517
|
-
text: l(o)("actions.remove_entity", { entity: f.value })
|
|
1518
|
-
}, {
|
|
1519
|
-
default: T(() => [
|
|
1520
|
-
x(O, {
|
|
1521
|
-
appearance: "tertiary",
|
|
1522
|
-
"aria-label": l(o)("actions.remove_entity", { entity: f.value }),
|
|
1523
|
-
class: "ff-array-field-item-remove",
|
|
1524
|
-
"data-testid": `ff-array-remove-item-btn-${r.path.value}.${D}`,
|
|
1525
|
-
icon: "",
|
|
1526
|
-
onClick: Fe((Vt) => _(D), ["stop"])
|
|
1527
|
-
}, {
|
|
1528
|
-
default: T(() => [
|
|
1529
|
-
x(l(Je))
|
|
1530
|
-
]),
|
|
1531
|
-
_: 1
|
|
1532
|
-
}, 8, ["aria-label", "data-testid", "onClick"])
|
|
1533
|
-
]),
|
|
1534
|
-
_: 2
|
|
1535
|
-
}, 1032, ["text"])
|
|
1536
|
-
]),
|
|
1537
|
-
_: 2
|
|
1538
|
-
}, 1032, ["class", "data-index", "data-testid"]))), 128))
|
|
1539
|
-
], 8, Ja),
|
|
1540
|
-
x(O, {
|
|
1541
|
-
appearance: "tertiary",
|
|
1542
|
-
"aria-label": p.value,
|
|
1543
|
-
class: "ff-array-field-add-item-btn",
|
|
1544
|
-
"data-testid": `ff-add-item-btn-${r.path.value}`,
|
|
1545
|
-
onClick: k
|
|
1546
|
-
}, {
|
|
1547
|
-
default: T(() => [
|
|
1548
|
-
x(l(je)),
|
|
1549
|
-
ue(" " + se(p.value), 1)
|
|
1550
|
-
]),
|
|
1551
|
-
_: 1
|
|
1552
|
-
}, 8, ["aria-label", "data-testid"])
|
|
1553
|
-
], 64)) : d.value.length ? (A(), j(l(Ne), {
|
|
1554
|
-
key: 2,
|
|
1555
|
-
"data-testid": `ff-array-tab-container-${r.path.value}`
|
|
1556
|
-
}, {
|
|
1557
|
-
default: T(() => [
|
|
1558
|
-
x(_t, {
|
|
1559
|
-
modelValue: $.value,
|
|
1560
|
-
"onUpdate:modelValue": E[0] || (E[0] = (pe) => $.value = pe),
|
|
1561
|
-
"data-testid": `ff-array-tabs-${r.path.value}`,
|
|
1562
|
-
tabs: h.value
|
|
1563
|
-
}, Z({ _: 2 }, [
|
|
1564
|
-
de(d.value, (pe, D) => ({
|
|
1565
|
-
name: l(y)(pe, D),
|
|
1566
|
-
fn: T(() => [
|
|
1567
|
-
N("div", {
|
|
1568
|
-
class: "ff-array-field-item",
|
|
1569
|
-
"data-index": D,
|
|
1570
|
-
"data-testid": `ff-array-item-${r.path.value}.${D}`
|
|
1571
|
-
}, [
|
|
1572
|
-
V.$slots.item ? B(V.$slots, "item", {
|
|
1573
|
-
autofocus: !0,
|
|
1574
|
-
fieldName: String(D),
|
|
1575
|
-
index: D
|
|
1576
|
-
}, void 0, !0, 0) : (A(), j(ge, {
|
|
1577
|
-
key: 1,
|
|
1578
|
-
autofocus: "",
|
|
1579
|
-
name: String(D)
|
|
1580
|
-
}, null, 8, ["name"]))
|
|
1581
|
-
], 8, Ya)
|
|
1582
|
-
])
|
|
1583
|
-
})),
|
|
1584
|
-
de(d.value, (pe, D) => ({
|
|
1585
|
-
name: `${l(y)(pe, D)}-anchor`,
|
|
1586
|
-
fn: T(() => [
|
|
1587
|
-
ue(se(w(pe, D)) + " ", 1),
|
|
1588
|
-
x(O, {
|
|
1589
|
-
appearance: "tertiary",
|
|
1590
|
-
"aria-label": l(o)("actions.remove_entity", { entity: f.value }),
|
|
1591
|
-
class: "ff-array-field-item-remove",
|
|
1592
|
-
"data-testid": `ff-array-remove-item-btn-${r.path.value}.${D}`,
|
|
1593
|
-
icon: "",
|
|
1594
|
-
onClick: Fe((Vt) => _(D), ["stop"])
|
|
1595
|
-
}, {
|
|
1596
|
-
default: T(() => [
|
|
1597
|
-
x(l(Nt))
|
|
1598
|
-
]),
|
|
1599
|
-
_: 1
|
|
1600
|
-
}, 8, ["aria-label", "data-testid", "onClick"])
|
|
1601
|
-
])
|
|
1602
|
-
}))
|
|
1603
|
-
]), 1032, ["modelValue", "data-testid", "tabs"])
|
|
1604
|
-
]),
|
|
1605
|
-
_: 3
|
|
1606
|
-
}, 8, ["data-testid"])) : z("", !0)
|
|
1607
|
-
], 10, Ua)), [
|
|
1608
|
-
[Q, !l(m)]
|
|
1609
|
-
]);
|
|
1610
|
-
};
|
|
1611
|
-
}
|
|
1612
|
-
}), Qa = /* @__PURE__ */ Y(Xa, [["__scopeId", "data-v-6f1fd93b"]]), Za = /* @__PURE__ */ U({
|
|
1613
|
-
__name: "SlideTransition",
|
|
1614
|
-
setup(e) {
|
|
1615
|
-
const s = [
|
|
1616
|
-
"height",
|
|
1617
|
-
"padding-top",
|
|
1618
|
-
"padding-bottom",
|
|
1619
|
-
"margin-top",
|
|
1620
|
-
"margin-bottom",
|
|
1621
|
-
"border-top-width",
|
|
1622
|
-
"border-bottom-width"
|
|
1623
|
-
], t = Object.fromEntries(s.map((f) => [f, ""])), n = Object.fromEntries(s.map((f) => [f, "0"]));
|
|
1624
|
-
function o(f) {
|
|
1625
|
-
const p = getComputedStyle(f);
|
|
1626
|
-
return Object.fromEntries(
|
|
1627
|
-
s.map((d) => [d, p.getPropertyValue(d)])
|
|
1628
|
-
);
|
|
1629
|
-
}
|
|
1630
|
-
function a(f) {
|
|
1631
|
-
["overflow", "transition", ...s].forEach(
|
|
1632
|
-
(p) => f.style.removeProperty(p)
|
|
1633
|
-
);
|
|
1634
|
-
}
|
|
1635
|
-
function u(f) {
|
|
1636
|
-
Object.assign(f.style, {
|
|
1637
|
-
overflow: "hidden",
|
|
1638
|
-
transition: "none"
|
|
1639
|
-
});
|
|
1640
|
-
}
|
|
1641
|
-
function i(f) {
|
|
1642
|
-
const p = f;
|
|
1643
|
-
Object.assign(p.style, t);
|
|
1644
|
-
const d = o(p);
|
|
1645
|
-
Object.assign(p.style, n), requestAnimationFrame(() => {
|
|
1646
|
-
Object.assign(p.style, {
|
|
1647
|
-
...d,
|
|
1648
|
-
transition: ""
|
|
1649
|
-
});
|
|
1650
|
-
});
|
|
1651
|
-
}
|
|
1652
|
-
function m(f) {
|
|
1653
|
-
a(f);
|
|
1654
|
-
}
|
|
1655
|
-
function r(f) {
|
|
1656
|
-
const p = f;
|
|
1657
|
-
Object.assign(p.style, {
|
|
1658
|
-
...o(p),
|
|
1659
|
-
overflow: "hidden"
|
|
1660
|
-
});
|
|
1661
|
-
}
|
|
1662
|
-
function c(f) {
|
|
1663
|
-
Object.assign(f.style, n);
|
|
1664
|
-
}
|
|
1665
|
-
function v(f) {
|
|
1666
|
-
a(f);
|
|
1667
|
-
}
|
|
1668
|
-
return (f, p) => (A(), j(Pt, {
|
|
1669
|
-
"enter-active-class": "ff-slide-active",
|
|
1670
|
-
"leave-active-class": "ff-slide-active",
|
|
1671
|
-
onAfterEnter: m,
|
|
1672
|
-
onAfterLeave: v,
|
|
1673
|
-
onBeforeEnter: u,
|
|
1674
|
-
onBeforeLeave: r,
|
|
1675
|
-
onEnter: i,
|
|
1676
|
-
onLeave: c
|
|
1677
|
-
}, {
|
|
1678
|
-
default: T(() => [
|
|
1679
|
-
B(f.$slots, "default", {}, void 0, !0)
|
|
1680
|
-
]),
|
|
1681
|
-
_: 3
|
|
1682
|
-
}));
|
|
1683
|
-
}
|
|
1684
|
-
}), en = /* @__PURE__ */ Y(Za, [["__scopeId", "data-v-d6108f48"]]), tn = { class: "ff-entity-checks-list" }, an = /* @__PURE__ */ U({
|
|
1685
|
-
__name: "EntityChecksAlert",
|
|
1686
|
-
props: {
|
|
1687
|
-
entityChecks: {},
|
|
1688
|
-
visibleFields: {}
|
|
1689
|
-
},
|
|
1690
|
-
setup(e) {
|
|
1691
|
-
const { i18n: { t: s } } = me(), t = g(() => {
|
|
1692
|
-
if (!Array.isArray(e.entityChecks) || e.entityChecks.length === 0)
|
|
1693
|
-
return null;
|
|
1694
|
-
const a = [], u = [
|
|
1695
|
-
{ key: "at_least_one_of", i18nKey: "field_rules.at_least_one_of" },
|
|
1696
|
-
{ key: "mutually_required", i18nKey: "field_rules.mutually_required" },
|
|
1697
|
-
{ key: "mutually_exclusive", i18nKey: "field_rules.mutually_exclusive" }
|
|
1698
|
-
];
|
|
1699
|
-
for (const i of e.entityChecks)
|
|
1700
|
-
for (const { key: m, i18nKey: r } of u)
|
|
1701
|
-
if (m in i) {
|
|
1702
|
-
const c = i[m];
|
|
1703
|
-
if (Array.isArray(c) && c.length > 0) {
|
|
1704
|
-
const v = o(c);
|
|
1705
|
-
v.length > 0 && a.push(s(r, {
|
|
1706
|
-
parameters: n(v)
|
|
1707
|
-
}));
|
|
1708
|
-
}
|
|
1709
|
-
break;
|
|
1710
|
-
}
|
|
1711
|
-
return a.length ? a : null;
|
|
1712
|
-
});
|
|
1713
|
-
function n(a) {
|
|
1714
|
-
return a.map(kt).join(", ");
|
|
1715
|
-
}
|
|
1716
|
-
function o(a) {
|
|
1717
|
-
return Array.isArray(e.visibleFields) ? a.filter((u) => e.visibleFields.includes(u.split(".")[0])) : a;
|
|
1718
|
-
}
|
|
1719
|
-
return (a, u) => {
|
|
1720
|
-
const i = H("KAlert");
|
|
1721
|
-
return t.value ? (A(), j(i, {
|
|
1722
|
-
key: 0,
|
|
1723
|
-
"data-testid": "ff-entity-checks-alert"
|
|
1724
|
-
}, {
|
|
1725
|
-
default: T(() => [
|
|
1726
|
-
N("ul", tn, [
|
|
1727
|
-
(A(!0), L(le, null, de(t.value, (m) => (A(), L("li", {
|
|
1728
|
-
key: m,
|
|
1729
|
-
"data-testid": "ff-entity-check-item"
|
|
1730
|
-
}, se(m), 1))), 128))
|
|
1731
|
-
])
|
|
1732
|
-
]),
|
|
1733
|
-
_: 1
|
|
1734
|
-
})) : z("", !0);
|
|
1735
|
-
};
|
|
1736
|
-
}
|
|
1737
|
-
}), st = /* @__PURE__ */ Y(an, [["__scopeId", "data-v-f2acf993"]]), nn = ["data-testid"], rn = ["data-testid"], ln = ["data-testid"], sn = { class: "ff-object-field-header-toggle" }, on = ["aria-controls", "aria-expanded", "aria-label", "data-testid", "disabled"], un = ["innerHTML"], cn = ["data-testid"], dn = {
|
|
1738
|
-
key: 0,
|
|
1739
|
-
class: "indent-guide"
|
|
1740
|
-
}, fn = /* @__PURE__ */ U({
|
|
1741
|
-
inheritAttrs: !1,
|
|
1742
|
-
__name: "ObjectField",
|
|
1743
|
-
props: /* @__PURE__ */ qe({
|
|
1744
|
-
name: {},
|
|
1745
|
-
label: {},
|
|
1746
|
-
labelAttributes: {},
|
|
1747
|
-
required: { type: Boolean, default: () => {
|
|
1748
|
-
} },
|
|
1749
|
-
defaultAdded: { type: Boolean, default: !0 },
|
|
1750
|
-
collapsible: { type: Boolean, default: !0 },
|
|
1751
|
-
appearance: {},
|
|
1752
|
-
omit: {},
|
|
1753
|
-
asChild: { type: Boolean, default: () => {
|
|
1754
|
-
} },
|
|
1755
|
-
resetLabelPath: { default: "reset" },
|
|
1756
|
-
fieldsOrder: {},
|
|
1757
|
-
renderRules: {}
|
|
1758
|
-
}, {
|
|
1759
|
-
added: { type: Boolean },
|
|
1760
|
-
addedModifiers: {},
|
|
1761
|
-
expanded: { type: Boolean },
|
|
1762
|
-
expandedModifiers: {}
|
|
1763
|
-
}),
|
|
1764
|
-
emits: ["update:added", "update:expanded"],
|
|
1765
|
-
setup(e) {
|
|
1766
|
-
const s = Ft(), t = fe(e, ["defaultAdded", "collapsible", "omit", "required", "asChild", "resetLabelPath", "fieldsOrder"]), { value: n, hide: o, ...a } = ae(C(t, "name")), {
|
|
1767
|
-
getSchema: u,
|
|
1768
|
-
getDefault: i,
|
|
1769
|
-
useCurrentRenderRules: m
|
|
1770
|
-
} = ee(), r = m({
|
|
1771
|
-
fieldPath: a.path,
|
|
1772
|
-
rules: C(t, "renderRules"),
|
|
1773
|
-
omittedFields: C(() => e.omit)
|
|
1774
|
-
}), c = De(e, "added"), v = De(e, "expanded"), f = g(() => {
|
|
1775
|
-
if (a.ancestors?.value) {
|
|
1776
|
-
const k = a.ancestors.value.parent;
|
|
1777
|
-
if (k?.path)
|
|
1778
|
-
return u(k.path)?.type === "array";
|
|
1779
|
-
}
|
|
1780
|
-
return !1;
|
|
1781
|
-
}), p = g(() => {
|
|
1782
|
-
if (a.ancestors?.value) {
|
|
1783
|
-
const k = a.ancestors.value.parent;
|
|
1784
|
-
if (k?.path)
|
|
1785
|
-
return u(k.path)?.type === "map";
|
|
1786
|
-
}
|
|
1787
|
-
return !1;
|
|
1788
|
-
}), d = ie(a.path, { required: e.required, ...t, resetLabelPath: e.resetLabelPath }), y = g(() => d.value.required ? !0 : c.value ?? e.defaultAdded), b = g(() => e.asChild !== void 0 ? e.asChild : f.value), P = g(() => {
|
|
1789
|
-
let k = a.schema.value.fields;
|
|
1790
|
-
return e.omit && (k = k.filter((_) => !e.omit.includes(Object.keys(_)[0]))), e.fieldsOrder ? mt(k, e.fieldsOrder) : (r.value?.bundles && (k = vt([...k], r.value.bundles)), k);
|
|
1791
|
-
}), w = g(() => P.value.map((k) => Object.keys(k)[0]));
|
|
1792
|
-
function h() {
|
|
1793
|
-
v.value = !v.value;
|
|
1794
|
-
}
|
|
1795
|
-
function $() {
|
|
1796
|
-
c.value ? n.value = i(a.path.value) : n.value = a.emptyValue.value;
|
|
1797
|
-
}
|
|
1798
|
-
return te(y, (k) => {
|
|
1799
|
-
e.collapsible && (v.value = k);
|
|
1800
|
-
}), jt(() => {
|
|
1801
|
-
if (a.error || !n) return;
|
|
1802
|
-
const k = n.value != null;
|
|
1803
|
-
c.value = k, (d.value.required || k) && (v.value = !0);
|
|
1804
|
-
}), (k, _) => {
|
|
1805
|
-
const S = H("KAlert"), I = H("KInputSwitch");
|
|
1806
|
-
return A(), L(le, null, [
|
|
1807
|
-
(A(), j(re(k.$slots[l(we)]))),
|
|
1808
|
-
a.error ? (A(), j(S, {
|
|
1809
|
-
key: 0,
|
|
1810
|
-
appearance: "danger",
|
|
1811
|
-
message: a.error.message
|
|
1812
|
-
}, null, 8, ["message"])) : b.value ? X((A(), L("div", G({
|
|
1813
|
-
key: 1,
|
|
1814
|
-
class: "ff-object-field ff-object-field-as-child"
|
|
1815
|
-
}, k.$attrs, {
|
|
1816
|
-
"data-testid": `ff-object-${a.path.value}`
|
|
1817
|
-
}), [
|
|
1818
|
-
B(k.$slots, "default", {}, () => [
|
|
1819
|
-
x(st, {
|
|
1820
|
-
"entity-checks": a.schema.value?.entity_checks,
|
|
1821
|
-
"visible-fields": w.value
|
|
1822
|
-
}, null, 8, ["entity-checks", "visible-fields"]),
|
|
1823
|
-
(A(!0), L(le, null, de(P.value, (F) => (A(), j(ge, {
|
|
1824
|
-
key: Object.keys(F)[0],
|
|
1825
|
-
name: Object.keys(F)[0]
|
|
1826
|
-
}, null, 8, ["name"]))), 128))
|
|
1827
|
-
], !0)
|
|
1828
|
-
], 16, nn)), [
|
|
1829
|
-
[Q, !l(o)]
|
|
1830
|
-
]) : X((A(), L("div", G({
|
|
1831
|
-
key: 2,
|
|
1832
|
-
class: ["ff-object-field", { "ff-object-field-collapsed": !v.value }],
|
|
1833
|
-
"data-testid": `ff-object-${a.path.value}`
|
|
1834
|
-
}, k.$attrs), [
|
|
1835
|
-
N("header", {
|
|
1836
|
-
class: "ff-object-field-header",
|
|
1837
|
-
"data-testid": `ff-object-header-${a.path.value}`
|
|
1838
|
-
}, [
|
|
1839
|
-
N("div", sn, [
|
|
1840
|
-
N("button", {
|
|
1841
|
-
"aria-controls": l(s),
|
|
1842
|
-
"aria-expanded": v.value,
|
|
1843
|
-
"aria-label": l(d).label,
|
|
1844
|
-
class: "ff-object-field-toggle-btn",
|
|
1845
|
-
"data-testid": `ff-object-toggle-btn-${a.path.value}`,
|
|
1846
|
-
disabled: !c.value,
|
|
1847
|
-
type: "button",
|
|
1848
|
-
onClick: Fe(h, ["prevent", "stop"])
|
|
1849
|
-
}, [
|
|
1850
|
-
x(l(Ut), {
|
|
1851
|
-
class: Pe(["ff-object-field-toggle-btn-trigger-icon", { "collapse-expanded": v.value }]),
|
|
1852
|
-
"data-testid": `ff-object-toggle-trigger-icon-${a.path.value}`,
|
|
1853
|
-
decorative: "",
|
|
1854
|
-
size: `var(--kui-icon-size-30, ${l(Gt)})`
|
|
1855
|
-
}, null, 8, ["class", "data-testid", "size"])
|
|
1856
|
-
], 8, on),
|
|
1857
|
-
p.value ? z("", !0) : (A(), j(l(Bt), G({
|
|
1858
|
-
key: 0,
|
|
1859
|
-
class: "ff-object-field-label",
|
|
1860
|
-
"data-testid": `ff-label-${a.path.value}`
|
|
1861
|
-
}, {
|
|
1862
|
-
...l(d),
|
|
1863
|
-
required: !1
|
|
1864
|
-
}, {
|
|
1865
|
-
"tooltip-attributes": l(d).labelAttributes.tooltipAttributes
|
|
1866
|
-
}), Z({
|
|
1867
|
-
default: T(() => [
|
|
1868
|
-
ue(se(l(d).label) + " ", 1)
|
|
1869
|
-
]),
|
|
1870
|
-
_: 2
|
|
1871
|
-
}, [
|
|
1872
|
-
l(d).labelAttributes?.info ? {
|
|
1873
|
-
name: "tooltip",
|
|
1874
|
-
fn: T(() => [
|
|
1875
|
-
B(k.$slots, "tooltip", {}, () => [
|
|
1876
|
-
N("div", {
|
|
1877
|
-
innerHTML: l(d).labelAttributes.info
|
|
1878
|
-
}, null, 8, un)
|
|
1879
|
-
], !0)
|
|
1880
|
-
]),
|
|
1881
|
-
key: "0"
|
|
1882
|
-
} : void 0
|
|
1883
|
-
]), 1040, ["data-testid", "tooltip-attributes"]))
|
|
1884
|
-
]),
|
|
1885
|
-
l(d).required ? z("", !0) : (A(), j(I, {
|
|
1886
|
-
key: 0,
|
|
1887
|
-
"data-testid": `ff-object-switch-${a.path.value}`,
|
|
1888
|
-
"model-value": c.value,
|
|
1889
|
-
"onUpdate:modelValue": _[0] || (_[0] = (F) => {
|
|
1890
|
-
c.value = F, $();
|
|
1891
|
-
})
|
|
1892
|
-
}, null, 8, ["data-testid", "model-value"]))
|
|
1893
|
-
], 8, ln),
|
|
1894
|
-
x(en, null, {
|
|
1895
|
-
default: T(() => [
|
|
1896
|
-
v.value ? (A(), L("div", {
|
|
1897
|
-
key: 0,
|
|
1898
|
-
class: "ff-object-field-content",
|
|
1899
|
-
"data-testid": `ff-object-content-${a.path.value}`
|
|
1900
|
-
}, [
|
|
1901
|
-
B(k.$slots, "default", {}, () => [
|
|
1902
|
-
x(st, {
|
|
1903
|
-
"entity-checks": a.schema.value?.entity_checks,
|
|
1904
|
-
"visible-fields": w.value
|
|
1905
|
-
}, null, 8, ["entity-checks", "visible-fields"]),
|
|
1906
|
-
(A(!0), L(le, null, de(P.value, (F) => (A(), j(ge, {
|
|
1907
|
-
key: Object.keys(F)[0],
|
|
1908
|
-
name: Object.keys(F)[0]
|
|
1909
|
-
}, null, 8, ["name"]))), 128))
|
|
1910
|
-
], !0)
|
|
1911
|
-
], 8, cn)) : z("", !0)
|
|
1912
|
-
]),
|
|
1913
|
-
_: 3
|
|
1914
|
-
}),
|
|
1915
|
-
v.value ? (A(), L("div", dn)) : z("", !0)
|
|
1916
|
-
], 16, rn)), [
|
|
1917
|
-
[Q, !l(o)]
|
|
1918
|
-
])
|
|
1919
|
-
], 64);
|
|
1920
|
-
};
|
|
1921
|
-
}
|
|
1922
|
-
}), pn = /* @__PURE__ */ Y(fn, [["__scopeId", "data-v-a9cebd60"]]), mn = {
|
|
1923
|
-
key: 1,
|
|
1924
|
-
class: "ff-number-field-wrapper"
|
|
1925
|
-
}, vn = ["innerHTML"], hn = /* @__PURE__ */ U({
|
|
1926
|
-
__name: "NumberField",
|
|
1927
|
-
props: {
|
|
1928
|
-
showVaultSecretPicker: { type: Boolean, default: () => {
|
|
1929
|
-
} },
|
|
1930
|
-
labelAttributes: {},
|
|
1931
|
-
max: {},
|
|
1932
|
-
min: {},
|
|
1933
|
-
modelValue: {},
|
|
1934
|
-
label: {},
|
|
1935
|
-
help: {},
|
|
1936
|
-
error: { type: Boolean },
|
|
1937
|
-
errorMessage: {},
|
|
1938
|
-
characterLimit: {},
|
|
1939
|
-
hasError: { type: Boolean },
|
|
1940
|
-
type: {},
|
|
1941
|
-
showPasswordMaskToggle: { type: Boolean },
|
|
1942
|
-
autofocus: { type: Boolean },
|
|
1943
|
-
name: {}
|
|
1944
|
-
},
|
|
1945
|
-
emits: ["update:modelValue"],
|
|
1946
|
-
setup(e, { emit: s }) {
|
|
1947
|
-
const t = fe(e, ["autofocus", "showVaultSecretPicker", "name"]), { value: n, hide: o, ...a } = ae(C(() => e.name)), u = ie(a.path, t), { i18n: i } = me(), m = g(() => {
|
|
1948
|
-
const w = a.schema?.value;
|
|
1949
|
-
if (typeof w.gt == "number")
|
|
1950
|
-
return { min: w.type === "integer" ? w.gt + 1 : w.gt };
|
|
1951
|
-
const [h, $] = w.between ?? [];
|
|
1952
|
-
return {
|
|
1953
|
-
min: t.min ?? h,
|
|
1954
|
-
max: t.max ?? $
|
|
1955
|
-
};
|
|
1956
|
-
}), r = s, c = n.value, v = g(() => {
|
|
1957
|
-
const w = n?.value;
|
|
1958
|
-
if (w == null || w === "") return "";
|
|
1959
|
-
if (b.value) return `${w}`;
|
|
1960
|
-
const h = typeof w == "number" ? w : Number(w);
|
|
1961
|
-
return Number.isFinite(h) ? `${h}` : "";
|
|
1962
|
-
});
|
|
1963
|
-
function f(w) {
|
|
1964
|
-
const h = p(w);
|
|
1965
|
-
c !== void 0 && w === "" && h !== c ? (n.value = a.emptyValue.value, r("update:modelValue", a.emptyValue.value)) : (n.value = h, r("update:modelValue", h));
|
|
1966
|
-
}
|
|
1967
|
-
function p(w) {
|
|
1968
|
-
if (w === "") return a.emptyValue.value;
|
|
1969
|
-
const h = w.trim();
|
|
1970
|
-
if (h === "") return a.emptyValue.value;
|
|
1971
|
-
const $ = Number(h);
|
|
1972
|
-
return Number.isFinite($) ? $ : b.value ? w : a.emptyValue.value;
|
|
1973
|
-
}
|
|
1974
|
-
const d = be(ft, void 0), y = g(() => ({ referenceable: b.value })), b = g(() => e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!a.schema.value?.referenceable), P = g(() => b.value ? "text" : "number");
|
|
1975
|
-
return (w, h) => {
|
|
1976
|
-
const $ = H("KAlert");
|
|
1977
|
-
return a.error ? (A(), j($, {
|
|
1978
|
-
key: 0,
|
|
1979
|
-
appearance: "danger",
|
|
1980
|
-
message: a.error.message
|
|
1981
|
-
}, null, 8, ["message"])) : X((A(), L("div", mn, [
|
|
1982
|
-
x(Ae, G({ class: "ff-number-field" }, {
|
|
1983
|
-
...l(u),
|
|
1984
|
-
min: m.value.min,
|
|
1985
|
-
max: m.value.max
|
|
1986
|
-
}, {
|
|
1987
|
-
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
1988
|
-
"data-testid": `ff-${a.path.value}`,
|
|
1989
|
-
"model-value": v.value,
|
|
1990
|
-
type: P.value,
|
|
1991
|
-
"onUpdate:modelValue": f
|
|
1992
|
-
}), Z({ _: 2 }, [
|
|
1993
|
-
l(u).labelAttributes?.info ? {
|
|
1994
|
-
name: "label-tooltip",
|
|
1995
|
-
fn: T(() => [
|
|
1996
|
-
B(w.$slots, "tooltip", {}, () => [
|
|
1997
|
-
N("div", {
|
|
1998
|
-
innerHTML: l(u).labelAttributes.info
|
|
1999
|
-
}, null, 8, vn)
|
|
2000
|
-
], !0)
|
|
2001
|
-
]),
|
|
2002
|
-
key: "0"
|
|
2003
|
-
} : void 0
|
|
2004
|
-
]), 1040, ["data-autofocus", "data-testid", "model-value", "type"]),
|
|
2005
|
-
l(d) && b.value ? (A(), j(re(l(d)), {
|
|
2006
|
-
key: 0,
|
|
2007
|
-
schema: y.value,
|
|
2008
|
-
update: f,
|
|
2009
|
-
value: l(n) ?? ""
|
|
2010
|
-
}, null, 8, ["schema", "value"])) : z("", !0),
|
|
2011
|
-
b.value && !l(d) ? (A(), j($, {
|
|
2012
|
-
key: 1,
|
|
2013
|
-
appearance: "warning",
|
|
2014
|
-
"data-testid": `ff-vault-secret-picker-warning-${a.path.value}`,
|
|
2015
|
-
message: l(i).t("vault_picker.component_error")
|
|
2016
|
-
}, null, 8, ["data-testid", "message"])) : z("", !0)
|
|
2017
|
-
], 512)), [
|
|
2018
|
-
[Q, !l(o)]
|
|
2019
|
-
]);
|
|
2020
|
-
};
|
|
2021
|
-
}
|
|
2022
|
-
}), yn = /* @__PURE__ */ Y(hn, [["__scopeId", "data-v-9deaf03d"]]), bn = ["innerHTML"], gn = /* @__PURE__ */ U({
|
|
2023
|
-
__name: "EnumField",
|
|
2024
|
-
props: /* @__PURE__ */ qe({
|
|
2025
|
-
labelAttributes: {},
|
|
2026
|
-
items: {},
|
|
2027
|
-
placeholder: {},
|
|
2028
|
-
multiple: { type: Boolean, default: () => {
|
|
2029
|
-
} },
|
|
2030
|
-
modelValue: {},
|
|
2031
|
-
label: {},
|
|
2032
|
-
help: {},
|
|
2033
|
-
error: { type: Boolean },
|
|
2034
|
-
searchPlaceholder: {},
|
|
2035
|
-
kpopAttributes: {},
|
|
2036
|
-
dropdownMaxHeight: {},
|
|
2037
|
-
width: {},
|
|
2038
|
-
selectedRowCount: {},
|
|
2039
|
-
collapsedContext: { type: Boolean },
|
|
2040
|
-
filterFunction: { type: Function },
|
|
2041
|
-
autosuggest: { type: Boolean },
|
|
2042
|
-
enableItemCreation: { type: Boolean },
|
|
2043
|
-
loading: { type: Boolean },
|
|
2044
|
-
dropdownFooterText: {},
|
|
2045
|
-
dropdownFooterTextPosition: {},
|
|
2046
|
-
dropdownFooterPosition: {},
|
|
2047
|
-
itemCreationValidator: { type: Function },
|
|
2048
|
-
enableFiltering: { type: Boolean },
|
|
2049
|
-
clearable: { type: Boolean },
|
|
2050
|
-
reuseItemTemplate: { type: Boolean },
|
|
2051
|
-
autofocus: { type: Boolean },
|
|
2052
|
-
name: {}
|
|
2053
|
-
}, {
|
|
2054
|
-
modelValue: {
|
|
2055
|
-
// If multiple and value is null/undefined, return empty array for v-model
|
|
2056
|
-
},
|
|
2057
|
-
modelModifiers: {}
|
|
2058
|
-
}),
|
|
2059
|
-
emits: /* @__PURE__ */ qe(["update"], ["update:modelValue"]),
|
|
2060
|
-
setup(e, { emit: s }) {
|
|
2061
|
-
const t = s, n = fe(e, ["name", "items", "multiple", "autofocus"]), { getSelectItems: o } = ee(), { value: a, hide: u, ...i } = ae(
|
|
2062
|
-
C(() => e.name)
|
|
2063
|
-
), m = ie(i.path, n);
|
|
2064
|
-
function r(d) {
|
|
2065
|
-
if (m.value.required) return d;
|
|
2066
|
-
const y = f.value && Array.isArray(d) && d.length === 0;
|
|
2067
|
-
return d == null || d === "" || y ? i.emptyValue.value : d;
|
|
2068
|
-
}
|
|
2069
|
-
const c = De(e, "modelValue", {
|
|
2070
|
-
// If multiple and value is null/undefined, return empty array for v-model
|
|
2071
|
-
get: () => f.value && a?.value == null ? [] : a.value,
|
|
2072
|
-
set: (d) => {
|
|
2073
|
-
a.value = r(d);
|
|
2074
|
-
}
|
|
2075
|
-
}), v = g(() => e.items ? e.items : i.path ? o(i.path.value) : []), f = g(() => e.multiple !== void 0 ? e.multiple : i.schema.value?.type === "set"), p = g(() => f.value ? Dt : qt);
|
|
2076
|
-
return (d, y) => {
|
|
2077
|
-
const b = H("KAlert");
|
|
2078
|
-
return i.error ? (A(), j(b, {
|
|
2079
|
-
key: 0,
|
|
2080
|
-
appearance: "danger",
|
|
2081
|
-
message: i.error.message
|
|
2082
|
-
}, null, 8, ["message"])) : X((A(), j(l(p), G({ key: 1 }, { ...n, ...l(m) }, {
|
|
2083
|
-
modelValue: c.value,
|
|
2084
|
-
"onUpdate:modelValue": [
|
|
2085
|
-
y[0] || (y[0] = (P) => c.value = P),
|
|
2086
|
-
y[1] || (y[1] = (P) => t("update", r(P)))
|
|
2087
|
-
],
|
|
2088
|
-
class: "ff-enum-field",
|
|
2089
|
-
clearable: !l(m).required,
|
|
2090
|
-
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
2091
|
-
"data-testid": `ff-${i.path.value}`,
|
|
2092
|
-
items: v.value,
|
|
2093
|
-
"kpop-attributes": { "data-testid": `ff-enum-${i.path.value}-items` }
|
|
2094
|
-
}), Z({ _: 2 }, [
|
|
2095
|
-
"tooltip" in d.$slots || l(m).labelAttributes?.info ? {
|
|
2096
|
-
name: "label-tooltip",
|
|
2097
|
-
fn: T(() => [
|
|
2098
|
-
B(d.$slots, "tooltip", {}, () => [
|
|
2099
|
-
N("div", {
|
|
2100
|
-
innerHTML: l(m).labelAttributes.info
|
|
2101
|
-
}, null, 8, bn)
|
|
2102
|
-
], !0)
|
|
2103
|
-
]),
|
|
2104
|
-
key: "0"
|
|
2105
|
-
} : void 0,
|
|
2106
|
-
d.$slots["item-label"] ? {
|
|
2107
|
-
name: "item-template",
|
|
2108
|
-
fn: T(({ item: P }) => [
|
|
2109
|
-
B(d.$slots, "item-label", We(ut(P)), void 0, !0)
|
|
2110
|
-
]),
|
|
2111
|
-
key: "1"
|
|
2112
|
-
} : void 0,
|
|
2113
|
-
d.$slots["dropdown-footer-text"] ? {
|
|
2114
|
-
name: "dropdown-footer-text",
|
|
2115
|
-
fn: T(() => [
|
|
2116
|
-
B(d.$slots, "dropdown-footer-text", {}, void 0, !0)
|
|
2117
|
-
]),
|
|
2118
|
-
key: "2"
|
|
2119
|
-
} : void 0
|
|
2120
|
-
]), 1040, ["modelValue", "clearable", "data-autofocus", "data-testid", "items", "kpop-attributes"])), [
|
|
2121
|
-
[Q, !l(u)]
|
|
2122
|
-
]);
|
|
2123
|
-
};
|
|
2124
|
-
}
|
|
2125
|
-
}), Ee = /* @__PURE__ */ Y(gn, [["__scopeId", "data-v-3a14b10d"]]), kn = ["data-testid"], An = ["innerHTML"], $n = /* @__PURE__ */ U({
|
|
2126
|
-
inheritAttrs: !1,
|
|
2127
|
-
__name: "JsonField",
|
|
2128
|
-
props: {
|
|
2129
|
-
labelAttributes: {},
|
|
2130
|
-
autofocus: { type: Boolean },
|
|
2131
|
-
name: {}
|
|
2132
|
-
},
|
|
2133
|
-
emits: ["update:modelValue"],
|
|
2134
|
-
setup(e, { emit: s }) {
|
|
2135
|
-
const t = ke(), n = fe(e, ["autofocus", "name"]), o = s, { value: a, hide: u, ...i } = ae(C(() => e.name)), m = ie(i.path, C({ ...n, ...t })), r = oe("");
|
|
2136
|
-
function c(f) {
|
|
2137
|
-
r.value = f;
|
|
2138
|
-
let p = f === "" ? i.emptyValue.value : f;
|
|
2139
|
-
try {
|
|
2140
|
-
const d = JSON.parse(f);
|
|
2141
|
-
d && typeof d == "object" && (p = d);
|
|
2142
|
-
} catch {
|
|
2143
|
-
}
|
|
2144
|
-
a.value = p, o("update:modelValue", p);
|
|
2145
|
-
}
|
|
2146
|
-
const v = g(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : ve(e.name) === "name");
|
|
2147
|
-
return te(a, (f) => {
|
|
2148
|
-
if (f && typeof f == "object") {
|
|
2149
|
-
try {
|
|
2150
|
-
const p = JSON.parse(r.value);
|
|
2151
|
-
he(p, f) || (r.value = JSON.stringify(f, null, 2));
|
|
2152
|
-
} catch {
|
|
2153
|
-
r.value = JSON.stringify(f, null, 2);
|
|
2154
|
-
}
|
|
2155
|
-
return;
|
|
2156
|
-
}
|
|
2157
|
-
r.value = f || "";
|
|
2158
|
-
}, { immediate: !0 }), (f, p) => {
|
|
2159
|
-
const d = H("KAlert");
|
|
2160
|
-
return i.error ? (A(), j(d, {
|
|
2161
|
-
key: 0,
|
|
2162
|
-
appearance: "danger",
|
|
2163
|
-
message: i.error.message
|
|
2164
|
-
}, null, 8, ["message"])) : X((A(), L("div", {
|
|
2165
|
-
key: 1,
|
|
2166
|
-
"data-testid": `ff-json-${i.path.value}`
|
|
2167
|
-
}, [
|
|
2168
|
-
x(Ae, G(l(m), {
|
|
2169
|
-
class: "ff-json-field",
|
|
2170
|
-
"data-1p-ignore": v.value,
|
|
2171
|
-
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
2172
|
-
"data-testid": `ff-${i.path.value}`,
|
|
2173
|
-
"model-value": r.value ?? "",
|
|
2174
|
-
multiline: "",
|
|
2175
|
-
"onUpdate:modelValue": c
|
|
2176
|
-
}), Z({ _: 2 }, [
|
|
2177
|
-
l(m).labelAttributes?.info ? {
|
|
2178
|
-
name: "label-tooltip",
|
|
2179
|
-
fn: T(() => [
|
|
2180
|
-
B(f.$slots, "tooltip", {}, () => [
|
|
2181
|
-
N("div", {
|
|
2182
|
-
innerHTML: l(m).labelAttributes.info
|
|
2183
|
-
}, null, 8, An)
|
|
2184
|
-
], !0)
|
|
2185
|
-
]),
|
|
2186
|
-
key: "0"
|
|
2187
|
-
} : void 0
|
|
2188
|
-
]), 1040, ["data-1p-ignore", "data-autofocus", "data-testid", "model-value"])
|
|
2189
|
-
], 8, kn)), [
|
|
2190
|
-
[Q, !l(u)]
|
|
2191
|
-
]);
|
|
2192
|
-
};
|
|
2193
|
-
}
|
|
2194
|
-
}), _n = /* @__PURE__ */ Y($n, [["__scopeId", "data-v-102c7cc6"]]), Vn = ["innerHTML"], Sn = /* @__PURE__ */ U({
|
|
2195
|
-
inheritAttrs: !1,
|
|
2196
|
-
__name: "ForeignField",
|
|
2197
|
-
props: {
|
|
2198
|
-
labelAttributes: {},
|
|
2199
|
-
type: {},
|
|
2200
|
-
modelValue: {},
|
|
2201
|
-
label: {},
|
|
2202
|
-
help: {},
|
|
2203
|
-
error: { type: Boolean },
|
|
2204
|
-
errorMessage: {},
|
|
2205
|
-
characterLimit: {},
|
|
2206
|
-
hasError: { type: Boolean },
|
|
2207
|
-
showPasswordMaskToggle: { type: Boolean },
|
|
2208
|
-
autofocus: { type: Boolean },
|
|
2209
|
-
name: {}
|
|
2210
|
-
},
|
|
2211
|
-
emits: ["update:modelValue"],
|
|
2212
|
-
setup(e, { emit: s }) {
|
|
2213
|
-
const t = ke(), { i18n: { t: n } } = me(), o = fe(e, ["autofocus", "name"]), a = s, { value: u, hide: i, ...m } = ae(C(() => e.name));
|
|
2214
|
-
if (m.error)
|
|
2215
|
-
throw new Error(m.error.message);
|
|
2216
|
-
const r = ie(m.path, C({ ...o, ...t })), c = u.value ? u.value.id : null, v = g(() => r.value.placeholder ? r.value.placeholder : n("foreign_placeholder", { entity: m.schema.value?.reference ?? "entity" })), f = oe(c ?? "");
|
|
2217
|
-
function p(y) {
|
|
2218
|
-
c !== void 0 && y === "" && y !== c ? (u.value = m.emptyValue.value, a("update:modelValue", m.emptyValue.value)) : (u.value = { id: y.trim() }, a("update:modelValue", u.value));
|
|
2219
|
-
}
|
|
2220
|
-
const d = g(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : ve(e.name) === "name");
|
|
2221
|
-
return (y, b) => X((A(), j(Ae, G(l(r), {
|
|
2222
|
-
class: "ff-foreign-field",
|
|
2223
|
-
"data-1p-ignore": d.value,
|
|
2224
|
-
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
2225
|
-
"data-testid": `ff-${m.path.value}`,
|
|
2226
|
-
error: e.error,
|
|
2227
|
-
"error-message": e.errorMessage,
|
|
2228
|
-
help: e.help,
|
|
2229
|
-
"model-value": f.value,
|
|
2230
|
-
placeholder: v.value,
|
|
2231
|
-
"onUpdate:modelValue": p
|
|
2232
|
-
}), Z({ _: 2 }, [
|
|
2233
|
-
l(r).labelAttributes?.info ? {
|
|
2234
|
-
name: "label-tooltip",
|
|
2235
|
-
fn: T(() => [
|
|
2236
|
-
B(y.$slots, "tooltip", {}, () => [
|
|
2237
|
-
N("div", {
|
|
2238
|
-
innerHTML: l(r).labelAttributes.info
|
|
2239
|
-
}, null, 8, Vn)
|
|
2240
|
-
], !0)
|
|
2241
|
-
]),
|
|
2242
|
-
key: "0"
|
|
2243
|
-
} : void 0
|
|
2244
|
-
]), 1040, ["data-1p-ignore", "data-autofocus", "data-testid", "error", "error-message", "help", "model-value", "placeholder"])), [
|
|
2245
|
-
[Q, !l(i)]
|
|
2246
|
-
]);
|
|
2247
|
-
}
|
|
2248
|
-
}), wn = /* @__PURE__ */ Y(Sn, [["__scopeId", "data-v-4c26016d"]]), En = ["data-testid"], Pn = ["data-testid"], Fn = ["innerHTML"], jn = { class: "ff-map-field-item-content" }, Tn = { class: "ff-map-field-fields" }, On = /* @__PURE__ */ U({
|
|
2249
|
-
__name: "MapField",
|
|
2250
|
-
props: {
|
|
2251
|
-
keyPlaceholder: {},
|
|
2252
|
-
appearance: {},
|
|
2253
|
-
oneLine: { type: Boolean },
|
|
2254
|
-
autofocus: { type: Boolean },
|
|
2255
|
-
name: {},
|
|
2256
|
-
labelAttributes: {}
|
|
2257
|
-
},
|
|
2258
|
-
emits: ["legacyValueChange"],
|
|
2259
|
-
setup(e, { emit: s }) {
|
|
2260
|
-
const { i18n: t } = me(), n = e, o = s, {
|
|
2261
|
-
keys: a,
|
|
2262
|
-
updateKey: u,
|
|
2263
|
-
addKey: i,
|
|
2264
|
-
removeKey: m,
|
|
2265
|
-
field: r,
|
|
2266
|
-
fieldDisplayName: c
|
|
2267
|
-
} = Va(C(n, "name"), k), v = ie(r.path, n), f = ["string", "number", "boolean", "integer", "foreign"], p = g(() => n.oneLine ? !0 : r.schema?.value?.type === "map" && f.includes(r.schema.value.values.type) && !n.appearance?.string?.multiline), d = g(() => r.schema?.value?.type === "map" ? r.schema.value.values : void 0), y = g(() => d.value?.type === "string" && !d.value?.one_of), b = g(() => p.value ? "div" : Ne), P = ct("root");
|
|
2268
|
-
function w(_, S) {
|
|
2269
|
-
n.appearance?.string?.multiline || (_.preventDefault(), S === a.value.length - 1 && i(), h(S + 1));
|
|
2270
|
-
}
|
|
2271
|
-
async function h(_) {
|
|
2272
|
-
P.value && (await Be(), P.value.querySelector(`[data-key-input="${_}"]`)?.focus());
|
|
2273
|
-
}
|
|
2274
|
-
function $() {
|
|
2275
|
-
i();
|
|
2276
|
-
const _ = a.value.findIndex(([S, I]) => !I);
|
|
2277
|
-
h(_ === -1 ? a.value.length - 1 : _);
|
|
2278
|
-
}
|
|
2279
|
-
function k(_) {
|
|
2280
|
-
o("legacyValueChange", _);
|
|
2281
|
-
}
|
|
2282
|
-
return (_, S) => {
|
|
2283
|
-
const I = H("KAlert"), F = H("KLabel"), M = H("KButton"), V = H("KTooltip");
|
|
2284
|
-
return l(r).error ? (A(), j(I, {
|
|
2285
|
-
key: 0,
|
|
2286
|
-
appearance: "danger",
|
|
2287
|
-
message: l(r).error.message
|
|
2288
|
-
}, null, 8, ["message"])) : X((A(), L("div", {
|
|
2289
|
-
key: 1,
|
|
2290
|
-
ref_key: "root",
|
|
2291
|
-
ref: P,
|
|
2292
|
-
class: "ff-map-field",
|
|
2293
|
-
"data-testid": `ff-map-${l(r).path.value}`
|
|
2294
|
-
}, [
|
|
2295
|
-
l(v).label ? (A(), L("header", {
|
|
2296
|
-
key: 0,
|
|
2297
|
-
class: "ff-map-field-header",
|
|
2298
|
-
"data-testid": `ff-map-header-${l(r).path.value}`
|
|
2299
|
-
}, [
|
|
2300
|
-
x(F, G({ class: "ff-map-field-label" }, l(v).labelAttributes, {
|
|
2301
|
-
"data-testid": `ff-label-${l(r).path.value}`,
|
|
2302
|
-
required: l(v).required,
|
|
2303
|
-
"tooltip-attributes": l(v).labelAttributes.tooltipAttributes
|
|
2304
|
-
}), Z({
|
|
2305
|
-
default: T(() => [
|
|
2306
|
-
ue(se(l(v).label) + " ", 1)
|
|
2307
|
-
]),
|
|
2308
|
-
_: 2
|
|
2309
|
-
}, [
|
|
2310
|
-
l(v).labelAttributes?.info ? {
|
|
2311
|
-
name: "tooltip",
|
|
2312
|
-
fn: T(() => [
|
|
2313
|
-
B(_.$slots, "tooltip", {}, () => [
|
|
2314
|
-
N("div", {
|
|
2315
|
-
innerHTML: l(v).labelAttributes.info
|
|
2316
|
-
}, null, 8, Fn)
|
|
2317
|
-
], !0)
|
|
2318
|
-
]),
|
|
2319
|
-
key: "0"
|
|
2320
|
-
} : void 0
|
|
2321
|
-
]), 1040, ["data-testid", "required", "tooltip-attributes"])
|
|
2322
|
-
], 8, Pn)) : z("", !0),
|
|
2323
|
-
(A(!0), L(le, null, de(l(a), ([E, W], J) => (A(), j(re(b.value), {
|
|
2324
|
-
key: E,
|
|
2325
|
-
class: Pe(["ff-map-field-item", {
|
|
2326
|
-
"ff-map-field-item-simple": p.value,
|
|
2327
|
-
"ff-map-field-item-complex": !p.value
|
|
2328
|
-
}]),
|
|
2329
|
-
"data-testid": `ff-map-container-${l(r).path.value}.${J}`
|
|
2330
|
-
}, {
|
|
2331
|
-
default: T(() => [
|
|
2332
|
-
N("div", jn, [
|
|
2333
|
-
N("div", Tn, [
|
|
2334
|
-
x(Ae, {
|
|
2335
|
-
class: "ff-map-field-fields-key",
|
|
2336
|
-
"data-key-input": J,
|
|
2337
|
-
"data-testid": `ff-map-key-${l(r).path.value}.${J}`,
|
|
2338
|
-
"model-value": W,
|
|
2339
|
-
placeholder: e.keyPlaceholder || "Key",
|
|
2340
|
-
onKeydown: Ze(Fe((O) => h(J), ["prevent"]), ["enter"]),
|
|
2341
|
-
"onUpdate:modelValue": (O) => l(u)(E, O)
|
|
2342
|
-
}, null, 8, ["data-key-input", "data-testid", "model-value", "placeholder", "onKeydown", "onUpdate:modelValue"]),
|
|
2343
|
-
B(_.$slots, "default", { keyId: E }, () => [
|
|
2344
|
-
y.value ? (A(), j(Qe, {
|
|
2345
|
-
key: 0,
|
|
2346
|
-
"inline-vault-picker": "",
|
|
2347
|
-
multiline: e.appearance?.string?.multiline,
|
|
2348
|
-
name: E,
|
|
2349
|
-
onKeydown: Ze((O) => w(O, J), ["enter"])
|
|
2350
|
-
}, null, 8, ["multiline", "name", "onKeydown"])) : (A(), j(ge, {
|
|
2351
|
-
key: 1,
|
|
2352
|
-
name: E
|
|
2353
|
-
}, null, 8, ["name"]))
|
|
2354
|
-
], !0)
|
|
2355
|
-
]),
|
|
2356
|
-
x(V, {
|
|
2357
|
-
text: l(t).t("actions.remove_entity", { entity: l(c) })
|
|
2358
|
-
}, {
|
|
2359
|
-
default: T(() => [
|
|
2360
|
-
x(M, {
|
|
2361
|
-
appearance: "tertiary",
|
|
2362
|
-
"aria-label": l(t).t("actions.remove_entity", { entity: l(c) }),
|
|
2363
|
-
"data-testid": `ff-map-remove-btn-${l(r).path.value}.${J}`,
|
|
2364
|
-
icon: "",
|
|
2365
|
-
onClick: (O) => l(m)(E)
|
|
2366
|
-
}, {
|
|
2367
|
-
default: T(() => [
|
|
2368
|
-
x(l(Je))
|
|
2369
|
-
]),
|
|
2370
|
-
_: 1
|
|
2371
|
-
}, 8, ["aria-label", "data-testid", "onClick"])
|
|
2372
|
-
]),
|
|
2373
|
-
_: 2
|
|
2374
|
-
}, 1032, ["text"])
|
|
2375
|
-
])
|
|
2376
|
-
]),
|
|
2377
|
-
_: 2
|
|
2378
|
-
}, 1032, ["class", "data-testid"]))), 128)),
|
|
2379
|
-
x(M, {
|
|
2380
|
-
appearance: "tertiary",
|
|
2381
|
-
"aria-label": l(t).t("actions.add_entity", { entity: l(c) }),
|
|
2382
|
-
class: "ff-map-field-add-entry-btn",
|
|
2383
|
-
"data-testid": `ff-map-add-btn-${l(r).path.value}`,
|
|
2384
|
-
onClick: $
|
|
2385
|
-
}, {
|
|
2386
|
-
default: T(() => [
|
|
2387
|
-
x(l(je)),
|
|
2388
|
-
ue(" " + se(l(t).t("actions.add_entity", { entity: l(c) })), 1)
|
|
2389
|
-
]),
|
|
2390
|
-
_: 1
|
|
2391
|
-
}, 8, ["aria-label", "data-testid"])
|
|
2392
|
-
], 8, En)), [
|
|
2393
|
-
[Q, !l(r).hide.value]
|
|
2394
|
-
]);
|
|
2395
|
-
};
|
|
2396
|
-
}
|
|
2397
|
-
}), Mn = /* @__PURE__ */ Y(On, [["__scopeId", "data-v-27875067"]]);
|
|
2398
|
-
function In(e) {
|
|
2399
|
-
switch (e?.type) {
|
|
2400
|
-
case "string":
|
|
2401
|
-
return "one_of" in e ? Ee : Qe;
|
|
2402
|
-
case "boolean":
|
|
2403
|
-
return "one_of" in e ? Ee : Da;
|
|
2404
|
-
case "number":
|
|
2405
|
-
case "integer":
|
|
2406
|
-
return "one_of" in e ? Ee : yn;
|
|
2407
|
-
case "array":
|
|
2408
|
-
return Qa;
|
|
2409
|
-
case "set":
|
|
2410
|
-
return Xt(e) ? At : Ee;
|
|
2411
|
-
case "record":
|
|
2412
|
-
return pn;
|
|
2413
|
-
case "map":
|
|
2414
|
-
return Mn;
|
|
2415
|
-
case "json":
|
|
2416
|
-
return _n;
|
|
2417
|
-
case "foreign":
|
|
2418
|
-
return wn;
|
|
2419
|
-
default:
|
|
2420
|
-
return;
|
|
2421
|
-
}
|
|
2422
|
-
}
|
|
2423
|
-
function $t(e) {
|
|
2424
|
-
return In(e);
|
|
2425
|
-
}
|
|
2426
|
-
const Kn = { class: "ff-expression-field" }, xn = /* @__PURE__ */ U({
|
|
2427
|
-
name: "ExpressionField",
|
|
2428
|
-
__name: "ExpressionField",
|
|
2429
|
-
props: {
|
|
2430
|
-
autofocus: { type: Boolean },
|
|
2431
|
-
name: {},
|
|
2432
|
-
labelAttributes: {},
|
|
2433
|
-
placeholder: {}
|
|
2434
|
-
},
|
|
2435
|
-
setup(e) {
|
|
2436
|
-
const { getSchema: s, isFieldHidden: t } = ee(), n = Le(C(() => e.name)), o = g(() => Ve(n.value)), a = g(() => $t(s(n.value))), u = g(() => t(n.value));
|
|
2437
|
-
return (i, m) => X((A(), L("div", Kn, [
|
|
2438
|
-
a.value ? (A(), j(re(a.value), {
|
|
2439
|
-
key: 0,
|
|
2440
|
-
autofocus: e.autofocus,
|
|
2441
|
-
name: o.value
|
|
2442
|
-
}, null, 8, ["autofocus", "name"])) : z("", !0),
|
|
2443
|
-
x(Ra, {
|
|
2444
|
-
name: o.value,
|
|
2445
|
-
placeholder: e.placeholder
|
|
2446
|
-
}, Z({ _: 2 }, [
|
|
2447
|
-
i.$slots.help ? {
|
|
2448
|
-
name: "help",
|
|
2449
|
-
fn: T(() => [
|
|
2450
|
-
B(i.$slots, "help", {}, void 0, !0)
|
|
2451
|
-
]),
|
|
2452
|
-
key: "0"
|
|
2453
|
-
} : void 0
|
|
2454
|
-
]), 1032, ["name", "placeholder"])
|
|
2455
|
-
], 512)), [
|
|
2456
|
-
[Q, !u.value]
|
|
2457
|
-
]);
|
|
2458
|
-
}
|
|
2459
|
-
}), Ln = /* @__PURE__ */ Y(xn, [["__scopeId", "data-v-a84183d6"]]), ge = /* @__PURE__ */ U({
|
|
2460
|
-
name: "AutoField",
|
|
2461
|
-
__name: "Field",
|
|
2462
|
-
props: {
|
|
2463
|
-
autofocus: { type: Boolean },
|
|
2464
|
-
name: {},
|
|
2465
|
-
labelAttributes: {}
|
|
2466
|
-
},
|
|
2467
|
-
emits: ["globalAction"],
|
|
2468
|
-
setup(e) {
|
|
2469
|
-
const s = e, t = ae(C(s, "name")), n = yt(C(() => t.path?.value ?? "")), o = g(() => n.available.value ? Ln : $t(t.schema?.value));
|
|
2470
|
-
return (a, u) => {
|
|
2471
|
-
const i = H("KAlert");
|
|
2472
|
-
return A(), L(le, null, [
|
|
2473
|
-
(A(), j(re(a.$slots[l(we)]))),
|
|
2474
|
-
l(t).error ? (A(), j(i, {
|
|
2475
|
-
key: 0,
|
|
2476
|
-
appearance: "danger",
|
|
2477
|
-
message: l(t).error.message
|
|
2478
|
-
}, null, 8, ["message"])) : l(t).renderer.value ? (A(), j(re(l(t).renderer.value), {
|
|
2479
|
-
key: 1,
|
|
2480
|
-
autofocus: s.autofocus,
|
|
2481
|
-
name: Ve(l(t).path.value),
|
|
2482
|
-
onGlobalAction: u[0] || (u[0] = (m, r) => a.$emit("globalAction", m, r))
|
|
2483
|
-
}, null, 40, ["autofocus", "name"])) : (A(), L(le, { key: 2 }, [
|
|
2484
|
-
o.value ? (A(), j(re(o.value), {
|
|
2485
|
-
key: 0,
|
|
2486
|
-
autofocus: s.autofocus,
|
|
2487
|
-
name: Ve(l(t).path.value)
|
|
2488
|
-
}, null, 8, ["autofocus", "name"])) : (A(), j(i, {
|
|
2489
|
-
key: 1,
|
|
2490
|
-
appearance: "warning",
|
|
2491
|
-
message: `${l(t).path.value} ${l(t).schema.value.type} (no renderer yet)`
|
|
2492
|
-
}, null, 8, ["message"])),
|
|
2493
|
-
B(a.$slots, "default")
|
|
2494
|
-
], 64))
|
|
2495
|
-
], 64);
|
|
2496
|
-
};
|
|
2497
|
-
}
|
|
2498
|
-
}), er = /* @__PURE__ */ U({
|
|
2499
|
-
name: "SchemaForm",
|
|
2500
|
-
__name: "Form",
|
|
2501
|
-
props: {
|
|
2502
|
-
tag: { default: "form" },
|
|
2503
|
-
schema: {},
|
|
2504
|
-
data: {},
|
|
2505
|
-
config: {},
|
|
2506
|
-
fieldsOrder: {},
|
|
2507
|
-
renderRules: {}
|
|
2508
|
-
},
|
|
2509
|
-
emits: ["change", "globalAction"],
|
|
2510
|
-
setup(e, { expose: s, emit: t }) {
|
|
2511
|
-
const n = t, o = Se(), { getSchema: a, formData: u, setValue: i, getValue: m, rootRenderRules: r, getEmptyValue: c } = va({
|
|
2512
|
-
schema: e.schema,
|
|
2513
|
-
propsData: g(() => e.data),
|
|
2514
|
-
propsConfig: () => e.config,
|
|
2515
|
-
propsRenderRules: C(() => e.renderRules),
|
|
2516
|
-
onChange: (f) => n("change", f)
|
|
2517
|
-
}), v = g(() => {
|
|
2518
|
-
const { fields: f } = a();
|
|
2519
|
-
let p = f.filter((d) => Object.keys(d)[0] !== xe);
|
|
2520
|
-
return e.fieldsOrder ? mt(p, e.fieldsOrder) : (r.value?.bundles && (p = vt([...p], r.value.bundles)), p);
|
|
2521
|
-
});
|
|
2522
|
-
return s({
|
|
2523
|
-
getValue: m,
|
|
2524
|
-
getRawValue: () => it(u),
|
|
2525
|
-
setValue: i,
|
|
2526
|
-
getEmptyValue: c
|
|
2527
|
-
}), (f, p) => (A(), j(re(e.tag), null, {
|
|
2528
|
-
default: T(() => [
|
|
2529
|
-
(A(), j(re(l(o)[l(we)]))),
|
|
2530
|
-
B(f.$slots, "default", {}, () => [
|
|
2531
|
-
(A(!0), L(le, null, de(v.value, (d) => (A(), j(ge, {
|
|
2532
|
-
key: Object.keys(d)[0],
|
|
2533
|
-
name: Object.keys(d)[0],
|
|
2534
|
-
onGlobalAction: p[0] || (p[0] = (y, b) => n("globalAction", y, b))
|
|
2535
|
-
}, null, 8, ["name"]))), 128))
|
|
2536
|
-
])
|
|
2537
|
-
]),
|
|
2538
|
-
_: 3
|
|
2539
|
-
}));
|
|
2540
|
-
}
|
|
2541
|
-
}), tr = /* @__PURE__ */ U({
|
|
2542
|
-
__name: "FieldRenderer",
|
|
2543
|
-
props: {
|
|
2544
|
-
match: { type: Function },
|
|
2545
|
-
priority: {}
|
|
2546
|
-
},
|
|
2547
|
-
setup(e) {
|
|
2548
|
-
const s = e, { default: t } = Se(), { fieldRendererRegistry: n } = ee();
|
|
2549
|
-
return t && n.set(s.match, t), (o, a) => null;
|
|
2550
|
-
}
|
|
2551
|
-
}), Rn = ["data-testid"], Cn = /* @__PURE__ */ U({
|
|
2552
|
-
__name: "SwitchField",
|
|
2553
|
-
props: {
|
|
2554
|
-
labelAttributes: {},
|
|
2555
|
-
enabledText: {},
|
|
2556
|
-
disabledText: {},
|
|
2557
|
-
autofocus: { type: Boolean },
|
|
2558
|
-
name: {}
|
|
2559
|
-
},
|
|
2560
|
-
emits: ["update:modelValue"],
|
|
2561
|
-
setup(e, { emit: s }) {
|
|
2562
|
-
const { i18n: { t } } = me(), n = fe(e, ["name", "enabledText", "disabledText"]), { value: o, hide: a, emptyOrDefaultValue: u, ...i } = ae(C(() => e.name)), m = s, r = (v) => {
|
|
2563
|
-
o.value = v, m("update:modelValue", v);
|
|
2564
|
-
}, c = ie(i.path, n);
|
|
2565
|
-
return (v, f) => {
|
|
2566
|
-
const p = H("KAlert");
|
|
2567
|
-
return i.error ? (A(), j(p, {
|
|
2568
|
-
key: 0,
|
|
2569
|
-
appearance: "danger",
|
|
2570
|
-
message: i.error.message
|
|
2571
|
-
}, null, 8, ["message"])) : X((A(), L("div", {
|
|
2572
|
-
key: 1,
|
|
2573
|
-
class: "ff-switch-field",
|
|
2574
|
-
"data-testid": `ff-${i.path.value}`
|
|
2575
|
-
}, [
|
|
2576
|
-
x(l(Ht), G(l(c), {
|
|
2577
|
-
"model-value": !!(l(o) == null ? l(u) : l(o)),
|
|
2578
|
-
"onUpdate:modelValue": r
|
|
2579
|
-
}), {
|
|
2580
|
-
label: T(() => [
|
|
2581
|
-
ue(se(l(o) ? e.enabledText || l(t)("actions.enabled") : e.disabledText || l(t)("actions.disabled")), 1)
|
|
2582
|
-
]),
|
|
2583
|
-
_: 1
|
|
2584
|
-
}, 16, ["model-value"])
|
|
2585
|
-
], 8, Rn)), [
|
|
2586
|
-
[Q, !l(a)]
|
|
2587
|
-
]);
|
|
2588
|
-
};
|
|
2589
|
-
}
|
|
2590
|
-
}), ar = /* @__PURE__ */ Y(Cn, [["__scopeId", "data-v-257a6fb9"]]);
|
|
2591
|
-
export {
|
|
2592
|
-
Qa as ArrayField,
|
|
2593
|
-
Da as BooleanField,
|
|
2594
|
-
xe as EXPRESSIONS_FIELD,
|
|
2595
|
-
Re as EXPRESSION_ARRAY_EMPTY,
|
|
2596
|
-
Ee as EnumField,
|
|
2597
|
-
Ra as ExpressionEditor,
|
|
2598
|
-
Ln as ExpressionField,
|
|
2599
|
-
rt as FIELD_PATH_KEY,
|
|
2600
|
-
we as FIELD_RENDERERS,
|
|
2601
|
-
Ue as FIELD_RENDERER_SLOTS,
|
|
2602
|
-
lt as FIELD_RESET_LABEL_PATH_SETTING,
|
|
2603
|
-
ge as Field,
|
|
2604
|
-
tr as FieldRenderer,
|
|
2605
|
-
wn as ForeignField,
|
|
2606
|
-
er as Form,
|
|
2607
|
-
_n as JsonField,
|
|
2608
|
-
Mn as MapField,
|
|
2609
|
-
yn as NumberField,
|
|
2610
|
-
pn as ObjectField,
|
|
2611
|
-
At as StringArrayField,
|
|
2612
|
-
Qe as StringField,
|
|
2613
|
-
ar as SwitchField,
|
|
2614
|
-
ba as USE_SECRET_INPUT_KEY,
|
|
2615
|
-
Qt as buildAncestor,
|
|
2616
|
-
Ie as buildArraySchemaMap,
|
|
2617
|
-
Ke as buildMapSchemaMap,
|
|
2618
|
-
Me as buildRecordSchemaMap,
|
|
2619
|
-
ta as buildSchemaMap,
|
|
2620
|
-
kt as defaultLabelFormatter,
|
|
2621
|
-
oa as findExpressionSourceRecord,
|
|
2622
|
-
ye as generalizePath,
|
|
2623
|
-
ia as isExpressionFieldSchema,
|
|
2624
|
-
va as provideFormShared,
|
|
2625
|
-
Qn as renderRuleExactMatch,
|
|
2626
|
-
bt as replaceByDictionary,
|
|
2627
|
-
gt as replaceByDictionaryInFieldName,
|
|
2628
|
-
la as toExpressionPath,
|
|
2629
|
-
sa as toSourcePath,
|
|
2630
|
-
yt as useExpressionField,
|
|
2631
|
-
ae as useField,
|
|
2632
|
-
ht as useFieldAncestors,
|
|
2633
|
-
ie as useFieldAttrs,
|
|
2634
|
-
_a as useFieldLabel,
|
|
2635
|
-
Le as useFieldPath,
|
|
2636
|
-
ya as useFieldRenderer,
|
|
2637
|
-
ga as useFormData,
|
|
2638
|
-
ee as useFormShared,
|
|
2639
|
-
ka as useItemKeys,
|
|
2640
|
-
$a as useLabelPath,
|
|
2641
|
-
Va as useMapField,
|
|
2642
|
-
ha as useOptionalFormShared,
|
|
2643
|
-
Zn as useSchemaExposer,
|
|
2644
|
-
aa as useSchemaHelpers
|
|
2645
|
-
};
|
|
1
|
+
export * from "@kong-ui-public/freeform";
|