@scalar/blocks 0.11.2 → 0.11.4
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/CHANGELOG.md +28 -0
- package/dist/code-example/components/AsyncApiCodeExample.vue.js +111 -6
- package/dist/code-example/components/AsyncApiCodeExample.vue.js.map +1 -1
- package/dist/code-example/components/AsyncApiCodeExample3.vue.js +8 -0
- package/dist/code-example/components/AsyncApiCodeExample3.vue.js.map +1 -0
- package/dist/code-example/components/CodeExample.vue.d.ts +10 -0
- package/dist/code-example/components/CodeExample.vue.d.ts.map +1 -1
- package/dist/code-example/components/CodeExample.vue.js +297 -6
- package/dist/code-example/components/CodeExample.vue.js.map +1 -1
- package/dist/code-example/components/CodeExample3.vue.js +8 -0
- package/dist/code-example/components/CodeExample3.vue.js.map +1 -0
- package/dist/code-example/components/ExamplePicker.vue.d.ts +2 -0
- package/dist/code-example/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/code-example/components/ExamplePicker.vue.js +50 -4
- package/dist/code-example/components/ExamplePicker.vue.js.map +1 -1
- package/dist/code-example/components/ExamplePicker2.vue.js +6 -0
- package/dist/code-example/components/ExamplePicker2.vue.js.map +1 -0
- package/dist/code-example/components/HttpMethod.vue.js +32 -4
- package/dist/code-example/components/HttpMethod.vue.js.map +1 -1
- package/dist/code-example/components/HttpMethod2.vue.js +6 -0
- package/dist/code-example/components/HttpMethod2.vue.js.map +1 -0
- package/dist/code-example/helpers/filter-clients-by-query.js.map +1 -1
- package/dist/code-example/helpers/find-client.js.map +1 -1
- package/dist/code-example/helpers/format-language.js.map +1 -1
- package/dist/code-example/helpers/generate-client-options.js.map +1 -1
- package/dist/code-example/helpers/generate-code-snippet.d.ts +8 -2
- package/dist/code-example/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/code-example/helpers/generate-code-snippet.js +57 -27
- package/dist/code-example/helpers/generate-code-snippet.js.map +1 -1
- package/dist/code-example/helpers/get-asyncapi-example-context.js.map +1 -1
- package/dist/code-example/helpers/get-clients.js.map +1 -1
- package/dist/code-example/helpers/get-custom-code-samples.js.map +1 -1
- package/dist/code-example/helpers/get-generated-payload-example.js.map +1 -1
- package/dist/code-example/helpers/get-message-example-content.js.map +1 -1
- package/dist/code-example/helpers/get-secrets.js.map +1 -1
- package/dist/code-example/helpers/get-snippet.d.ts +2 -2
- package/dist/code-example/helpers/get-snippet.d.ts.map +1 -1
- package/dist/code-example/helpers/get-snippet.js +7 -9
- package/dist/code-example/helpers/get-snippet.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/operation-to-har.d.ts +1 -1
- package/dist/code-example/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
- package/dist/code-example/helpers/operation-to-har/operation-to-har.js +1 -1
- package/dist/code-example/helpers/operation-to-har/operation-to-har.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-body.d.ts +2 -2
- package/dist/code-example/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-body.js +102 -81
- package/dist/code-example/helpers/operation-to-har/process-body.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-parameters.js +49 -47
- package/dist/code-example/helpers/operation-to-har/process-parameters.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-security-schemes.js +6 -6
- package/dist/code-example/helpers/operation-to-har/process-security-schemes.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-server-url.js.map +1 -1
- package/dist/code-example/index.d.ts +1 -1
- package/dist/code-example/index.d.ts.map +1 -1
- package/dist/code-example/index.js +14 -14
- package/dist/code-example/mount-asyncapi.js +1 -1
- package/dist/code-example/mount-asyncapi.js.map +1 -1
- package/dist/code-example/mount.js +1 -1
- package/dist/code-example/mount.js.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/schema/LinkButton.vue.js.map +1 -1
- package/dist/schema/RenderString.vue.js +11 -4
- package/dist/schema/RenderString.vue.js.map +1 -1
- package/dist/schema/RenderString2.vue.js +6 -0
- package/dist/schema/RenderString2.vue.js.map +1 -0
- package/dist/schema/Schema.vue.d.ts.map +1 -1
- package/dist/schema/Schema.vue.js +235 -6
- package/dist/schema/Schema.vue.js.map +1 -1
- package/dist/schema/Schema3.vue.js +8 -0
- package/dist/schema/Schema3.vue.js.map +1 -0
- package/dist/schema/SchemaCollapsedPreview.vue.js +25 -4
- package/dist/schema/SchemaCollapsedPreview.vue.js.map +1 -1
- package/dist/schema/SchemaCollapsedPreview2.vue.js +6 -0
- package/dist/schema/SchemaCollapsedPreview2.vue.js.map +1 -0
- package/dist/schema/SchemaComposition.vue.js +232 -6
- package/dist/schema/SchemaComposition.vue.js.map +1 -1
- package/dist/schema/SchemaComposition3.vue.js +8 -0
- package/dist/schema/SchemaComposition3.vue.js.map +1 -0
- package/dist/schema/SchemaEnumPropertyItem.vue.d.ts +1 -0
- package/dist/schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
- package/dist/schema/SchemaEnumPropertyItem.vue.js +23 -4
- package/dist/schema/SchemaEnumPropertyItem.vue.js.map +1 -1
- package/dist/schema/SchemaEnumPropertyItem2.vue.js +6 -0
- package/dist/schema/SchemaEnumPropertyItem2.vue.js.map +1 -0
- package/dist/schema/SchemaEnums.vue.d.ts.map +1 -1
- package/dist/schema/SchemaEnums.vue.js +74 -6
- package/dist/schema/SchemaEnums.vue.js.map +1 -1
- package/dist/schema/SchemaEnums3.vue.js +8 -0
- package/dist/schema/SchemaEnums3.vue.js.map +1 -0
- package/dist/schema/SchemaGlyphPuck.vue.js +27 -4
- package/dist/schema/SchemaGlyphPuck.vue.js.map +1 -1
- package/dist/schema/SchemaGlyphPuck2.vue.js +6 -0
- package/dist/schema/SchemaGlyphPuck2.vue.js.map +1 -0
- package/dist/schema/SchemaGutterToggle.vue.js +40 -4
- package/dist/schema/SchemaGutterToggle.vue.js.map +1 -1
- package/dist/schema/SchemaGutterToggle2.vue.js +6 -0
- package/dist/schema/SchemaGutterToggle2.vue.js.map +1 -0
- package/dist/schema/SchemaHeading.vue.js +32 -6
- package/dist/schema/SchemaHeading.vue.js.map +1 -1
- package/dist/schema/SchemaHeading3.vue.js +8 -0
- package/dist/schema/SchemaHeading3.vue.js.map +1 -0
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.js +42 -4
- package/dist/schema/SchemaObjectExampleCodeBlock.vue.js.map +1 -1
- package/dist/schema/SchemaObjectExampleCodeBlock2.vue.js +6 -0
- package/dist/schema/SchemaObjectExampleCodeBlock2.vue.js.map +1 -0
- package/dist/schema/SchemaObjectProperties.vue.js +213 -4
- package/dist/schema/SchemaObjectProperties.vue.js.map +1 -1
- package/dist/schema/SchemaObjectProperties2.vue.js +6 -0
- package/dist/schema/SchemaObjectProperties2.vue.js.map +1 -0
- package/dist/schema/SchemaProperty.vue.d.ts +7 -2
- package/dist/schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/schema/SchemaProperty.vue.js +494 -6
- package/dist/schema/SchemaProperty.vue.js.map +1 -1
- package/dist/schema/SchemaProperty3.vue.js +8 -0
- package/dist/schema/SchemaProperty3.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyDefault.vue.js +61 -6
- package/dist/schema/SchemaPropertyDefault.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyDefault3.vue.js +8 -0
- package/dist/schema/SchemaPropertyDefault3.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyDetail.vue.js +22 -6
- package/dist/schema/SchemaPropertyDetail.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyDetail3.vue.js +8 -0
- package/dist/schema/SchemaPropertyDetail3.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyExamples.vue.js +133 -6
- package/dist/schema/SchemaPropertyExamples.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyExamples3.vue.js +8 -0
- package/dist/schema/SchemaPropertyExamples3.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyHeading.vue.d.ts +4 -1
- package/dist/schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/schema/SchemaPropertyHeading.vue.js +313 -6
- package/dist/schema/SchemaPropertyHeading.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyHeading3.vue.js +8 -0
- package/dist/schema/SchemaPropertyHeading3.vue.js.map +1 -0
- package/dist/schema/SchemaPropertyPattern.vue.js +42 -6
- package/dist/schema/SchemaPropertyPattern.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyPattern3.vue.js +8 -0
- package/dist/schema/SchemaPropertyPattern3.vue.js.map +1 -0
- package/dist/schema/SchemaRailPanel.vue.js +53 -4
- package/dist/schema/SchemaRailPanel.vue.js.map +1 -1
- package/dist/schema/SchemaRailPanel2.vue.js +6 -0
- package/dist/schema/SchemaRailPanel2.vue.js.map +1 -0
- package/dist/schema/components/CopyLinkButton.vue.js +24 -4
- package/dist/schema/components/CopyLinkButton.vue.js.map +1 -1
- package/dist/schema/components/CopyLinkButton2.vue.js +6 -0
- package/dist/schema/components/CopyLinkButton2.vue.js.map +1 -0
- package/dist/schema/components/WithBreadcrumb.vue.js +15 -4
- package/dist/schema/components/WithBreadcrumb.vue.js.map +1 -1
- package/dist/schema/components/WithBreadcrumb2.vue.js +6 -0
- package/dist/schema/components/WithBreadcrumb2.vue.js.map +1 -0
- package/dist/schema/helpers/dynamic-scope.js.map +1 -1
- package/dist/schema/helpers/format-example.js.map +1 -1
- package/dist/schema/helpers/format-structured-value.d.ts +3 -0
- package/dist/schema/helpers/format-structured-value.d.ts.map +1 -0
- package/dist/schema/helpers/format-structured-value.js +6 -0
- package/dist/schema/helpers/format-structured-value.js.map +1 -0
- package/dist/schema/helpers/format-value.js.map +1 -1
- package/dist/schema/helpers/get-compositions-to-render.d.ts.map +1 -1
- package/dist/schema/helpers/get-compositions-to-render.js +34 -31
- package/dist/schema/helpers/get-compositions-to-render.js.map +1 -1
- package/dist/schema/helpers/get-discriminator-values.js.map +1 -1
- package/dist/schema/helpers/get-enum-values.js.map +1 -1
- package/dist/schema/helpers/get-property-description.js.map +1 -1
- package/dist/schema/helpers/get-ref-name.d.ts +14 -5
- package/dist/schema/helpers/get-ref-name.d.ts.map +1 -1
- package/dist/schema/helpers/get-ref-name.js +8 -11
- package/dist/schema/helpers/get-ref-name.js.map +1 -1
- package/dist/schema/helpers/get-rendered-example.js.map +1 -1
- package/dist/schema/helpers/get-schema-type.js.map +1 -1
- package/dist/schema/helpers/get-type-signature-tokens.d.ts.map +1 -1
- package/dist/schema/helpers/get-type-signature-tokens.js +37 -36
- package/dist/schema/helpers/get-type-signature-tokens.js.map +1 -1
- package/dist/schema/helpers/has-complex-array-items.js.map +1 -1
- package/dist/schema/helpers/index.d.ts +1 -1
- package/dist/schema/helpers/index.d.ts.map +1 -1
- package/dist/schema/helpers/index.js +3 -3
- package/dist/schema/helpers/is-empty-schema-object.js.map +1 -1
- package/dist/schema/helpers/is-model-linkable.js.map +1 -1
- package/dist/schema/helpers/is-on-schema-target-path.js.map +1 -1
- package/dist/schema/helpers/is-type-object.js.map +1 -1
- package/dist/schema/helpers/merge-all-of-schemas.js.map +1 -1
- package/dist/schema/helpers/normalize-object-composition.js.map +1 -1
- package/dist/schema/helpers/optimize-value-for-display.js.map +1 -1
- package/dist/schema/helpers/partition-all-of-compositions.js.map +1 -1
- package/dist/schema/helpers/schema-cycle.js.map +1 -1
- package/dist/schema/helpers/schema-expansion.js.map +1 -1
- package/dist/schema/helpers/schema-keyboard-nav.js.map +1 -1
- package/dist/schema/helpers/schema-name.d.ts +7 -3
- package/dist/schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/schema/helpers/schema-name.js +36 -26
- package/dist/schema/helpers/schema-name.js.map +1 -1
- package/dist/schema/helpers/should-display-description.js.map +1 -1
- package/dist/schema/helpers/should-display-heading.js.map +1 -1
- package/dist/schema/helpers/should-render-array-item-composition.js.map +1 -1
- package/dist/schema/helpers/sort-property-names.js.map +1 -1
- package/dist/schema/helpers/unwrap-for-read.js.map +1 -1
- package/dist/schema/index.js +8 -8
- package/dist/schema/localization/index.js.map +1 -1
- package/dist/schema/localization/translations.js.map +1 -1
- package/dist/shared/Badge.vue.js +13 -6
- package/dist/shared/Badge.vue.js.map +1 -1
- package/dist/shared/Badge3.vue.js +8 -0
- package/dist/shared/Badge3.vue.js.map +1 -0
- package/dist/shared/ExternalDocs.vue.d.ts +2 -0
- package/dist/shared/ExternalDocs.vue.d.ts.map +1 -1
- package/dist/shared/ExternalDocs.vue.js +50 -4
- package/dist/shared/ExternalDocs.vue.js.map +1 -1
- package/dist/shared/ExternalDocs2.vue.js +6 -0
- package/dist/shared/ExternalDocs2.vue.js.map +1 -0
- package/dist/shared/ExternalExampleStatus.vue.js +24 -4
- package/dist/shared/ExternalExampleStatus.vue.js.map +1 -1
- package/dist/shared/ExternalExampleStatus2.vue.js +6 -0
- package/dist/shared/ExternalExampleStatus2.vue.js.map +1 -0
- package/dist/shared/ScreenReader.vue.js +16 -4
- package/dist/shared/ScreenReader.vue.js.map +1 -1
- package/dist/shared/ScreenReader2.vue.js +6 -0
- package/dist/shared/ScreenReader2.vue.js.map +1 -0
- package/dist/shared/external-example-localization/index.js.map +1 -1
- package/dist/shared/external-example-localization/translations.js.map +1 -1
- package/dist/shared/index.js +4 -4
- package/dist/specification-extensions/ExtensionValue.vue.js +89 -4
- package/dist/specification-extensions/ExtensionValue.vue.js.map +1 -1
- package/dist/specification-extensions/ExtensionValue2.vue.js +6 -0
- package/dist/specification-extensions/ExtensionValue2.vue.js.map +1 -0
- package/dist/specification-extensions/SpecificationExtensions.vue.js +76 -4
- package/dist/specification-extensions/SpecificationExtensions.vue.js.map +1 -1
- package/dist/specification-extensions/SpecificationExtensions2.vue.js +6 -0
- package/dist/specification-extensions/SpecificationExtensions2.vue.js.map +1 -0
- package/dist/specification-extensions/index.js +1 -1
- package/dist/style.css +23 -19
- package/dist/vue-styles.css +1 -1
- package/package.json +19 -19
- package/dist/code-example/components/AsyncApiCodeExample.vue_vue_type_script_setup_true_lang.js +0 -113
- package/dist/code-example/components/AsyncApiCodeExample.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/code-example/components/CodeExample.vue_vue_type_script_setup_true_lang.js +0 -269
- package/dist/code-example/components/CodeExample.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/code-example/components/ExamplePicker.vue_vue_type_script_setup_true_lang.js +0 -48
- package/dist/code-example/components/ExamplePicker.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/code-example/components/HttpMethod.vue_vue_type_script_setup_true_lang.js +0 -34
- package/dist/code-example/components/HttpMethod.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/RenderString.vue_vue_type_script_setup_true_lang.js +0 -13
- package/dist/schema/RenderString.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/Schema.vue_vue_type_script_setup_true_lang.js +0 -237
- package/dist/schema/Schema.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaCollapsedPreview.vue_vue_type_script_setup_true_lang.js +0 -27
- package/dist/schema/SchemaCollapsedPreview.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaComposition.vue_vue_type_script_setup_true_lang.js +0 -234
- package/dist/schema/SchemaComposition.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaEnumPropertyItem.vue_vue_type_script_setup_true_lang.js +0 -23
- package/dist/schema/SchemaEnumPropertyItem.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaEnums.vue_vue_type_script_setup_true_lang.js +0 -77
- package/dist/schema/SchemaEnums.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaGlyphPuck.vue_vue_type_script_setup_true_lang.js +0 -29
- package/dist/schema/SchemaGlyphPuck.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaGutterToggle.vue_vue_type_script_setup_true_lang.js +0 -42
- package/dist/schema/SchemaGutterToggle.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaHeading.vue_vue_type_script_setup_true_lang.js +0 -34
- package/dist/schema/SchemaHeading.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaObjectExampleCodeBlock.vue_vue_type_script_setup_true_lang.js +0 -44
- package/dist/schema/SchemaObjectExampleCodeBlock.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaObjectProperties.vue_vue_type_script_setup_true_lang.js +0 -215
- package/dist/schema/SchemaObjectProperties.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaProperty.vue_vue_type_script_setup_true_lang.js +0 -474
- package/dist/schema/SchemaProperty.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaPropertyDefault.vue_vue_type_script_setup_true_lang.js +0 -63
- package/dist/schema/SchemaPropertyDefault.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaPropertyDetail.vue_vue_type_script_setup_true_lang.js +0 -24
- package/dist/schema/SchemaPropertyDetail.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaPropertyExamples.vue_vue_type_script_setup_true_lang.js +0 -135
- package/dist/schema/SchemaPropertyExamples.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaPropertyHeading.vue_vue_type_script_setup_true_lang.js +0 -314
- package/dist/schema/SchemaPropertyHeading.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaPropertyPattern.vue_vue_type_script_setup_true_lang.js +0 -44
- package/dist/schema/SchemaPropertyPattern.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/SchemaRailPanel.vue_vue_type_script_setup_true_lang.js +0 -55
- package/dist/schema/SchemaRailPanel.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/components/CopyLinkButton.vue_vue_type_script_setup_true_lang.js +0 -26
- package/dist/schema/components/CopyLinkButton.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/schema/components/WithBreadcrumb.vue_vue_type_script_setup_true_lang.js +0 -17
- package/dist/schema/components/WithBreadcrumb.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/shared/Badge.vue_vue_type_script_setup_true_lang.js +0 -15
- package/dist/shared/Badge.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/shared/ExternalDocs.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/shared/ExternalDocs.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/shared/ExternalExampleStatus.vue_vue_type_script_setup_true_lang.js +0 -26
- package/dist/shared/ExternalExampleStatus.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/shared/ScreenReader.vue_vue_type_script_setup_true_lang.js +0 -18
- package/dist/shared/ScreenReader.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/specification-extensions/ExtensionValue.vue_vue_type_script_setup_true_lang.js +0 -91
- package/dist/specification-extensions/ExtensionValue.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/specification-extensions/SpecificationExtensions.vue_vue_type_script_setup_true_lang.js +0 -78
- package/dist/specification-extensions/SpecificationExtensions.vue_vue_type_script_setup_true_lang.js.map +0 -1
|
@@ -1,8 +1,496 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import e from "../shared/ExternalDocs2.vue.js";
|
|
2
|
+
import t from "./components/CopyLinkButton2.vue.js";
|
|
3
|
+
import n from "./components/WithBreadcrumb2.vue.js";
|
|
4
|
+
import { schemaDiscriminator as r } from "./discriminator-metadata.js";
|
|
5
|
+
import { resolveDynamicSchema as i } from "./helpers/dynamic-scope.js";
|
|
6
|
+
import { getCompositionsToRender as ee, inferDiscriminatorMappingComposition as te } from "./helpers/get-compositions-to-render.js";
|
|
7
|
+
import { getEnumValues as a } from "./helpers/get-enum-values.js";
|
|
8
|
+
import { getPropertyDescriptionKey as ne } from "./helpers/get-property-description.js";
|
|
9
|
+
import { getRefName as re } from "./helpers/get-ref-name.js";
|
|
10
|
+
import { typeSignatureInlinesEnum as ie } from "./helpers/get-type-signature-tokens.js";
|
|
11
|
+
import { hasComplexArrayItems as o } from "./helpers/has-complex-array-items.js";
|
|
12
|
+
import { isTypeObject as s } from "./helpers/is-type-object.js";
|
|
13
|
+
import { normalizeObjectComposition as ae } from "./helpers/normalize-object-composition.js";
|
|
14
|
+
import { optimizeValueForDisplay as c } from "./helpers/optimize-value-for-display.js";
|
|
15
|
+
import { partitionAllOfCompositions as oe } from "./helpers/partition-all-of-compositions.js";
|
|
16
|
+
import { SCHEMA_ANCESTORS_SYMBOL as se, getCycleKey as ce } from "./helpers/schema-cycle.js";
|
|
17
|
+
import { toNodeKey as le, useSchemaExpansion as ue } from "./helpers/schema-expansion.js";
|
|
18
|
+
import { shouldDisplayDescription as de } from "./helpers/should-display-description.js";
|
|
19
|
+
import { shouldDisplayHeading as fe } from "./helpers/should-display-heading.js";
|
|
20
|
+
import { sortPropertyNames as pe } from "./helpers/sort-property-names.js";
|
|
21
|
+
import { unwrapForRead as me } from "./helpers/unwrap-for-read.js";
|
|
22
|
+
import { useLocalization as he } from "./localization/index.js";
|
|
23
|
+
import ge from "./Schema3.vue.js";
|
|
24
|
+
import _e from "./SchemaCollapsedPreview2.vue.js";
|
|
25
|
+
import ve from "./SchemaComposition3.vue.js";
|
|
26
|
+
import ye from "./SchemaEnums3.vue.js";
|
|
27
|
+
import be from "./SchemaGutterToggle2.vue.js";
|
|
28
|
+
import xe from "./SchemaPropertyHeading3.vue.js";
|
|
29
|
+
import Se from "./SchemaRailPanel2.vue.js";
|
|
30
|
+
import { Fragment as Ce, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as we, createSlots as Te, createTextVNode as Ee, createVNode as p, defineComponent as m, inject as De, mergeProps as h, normalizeClass as Oe, onBeforeUnmount as ke, onScopeDispose as Ae, openBlock as g, ref as je, renderList as Me, resolveDynamicComponent as Ne, toDisplayString as Pe, toHandlers as Fe, toRef as Ie, unref as _, useId as v, useTemplateRef as Le, watch as y, withCtx as b } from "vue";
|
|
31
|
+
import { ScalarWrappingText as x } from "@scalar/components/wrapping-text";
|
|
32
|
+
import { resolve as S } from "@scalar/workspace-store/resolve";
|
|
33
|
+
import { isArraySchema as C } from "@scalar/workspace-store/schemas/v3.2/strict/type-guards";
|
|
34
|
+
import { ScalarMarkdown as Re } from "@scalar/components/markdown";
|
|
35
|
+
import { isDynamicRef as ze } from "@scalar/workspace-store/helpers/dynamic-ref";
|
|
36
|
+
import { isObjectEqual as Be } from "@scalar/helpers/object/is-object-equal";
|
|
37
|
+
// src/schema/SchemaProperty.vue?vue&type=script&setup=true&lang.ts
|
|
38
|
+
var Ve = ["id"], He = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "property-name-pattern-properties text-c-1! border-0! p-0! before:hidden!"
|
|
41
|
+
}, Ue = {
|
|
42
|
+
key: 1,
|
|
43
|
+
class: "property-name-additional-properties text-c-1! border-0! p-0! before:hidden!"
|
|
44
|
+
}, We = ["id"], Ge = {
|
|
45
|
+
key: 0,
|
|
46
|
+
class: "property-name-pattern-properties text-c-1! border-0! p-0! before:hidden!"
|
|
47
|
+
}, Ke = {
|
|
48
|
+
key: 1,
|
|
49
|
+
class: "property-name-additional-properties text-c-1! border-0! p-0! before:hidden!"
|
|
50
|
+
}, qe = {
|
|
51
|
+
key: 2,
|
|
52
|
+
class: "property-description mt-1! has-[+.property-rule]:mb-1.5!"
|
|
53
|
+
}, Je = {
|
|
54
|
+
key: 3,
|
|
55
|
+
class: "mt-1 flex flex-wrap items-start gap-x-2 empty:hidden"
|
|
56
|
+
}, Ye = ["id"], Xe = {
|
|
57
|
+
key: 8,
|
|
58
|
+
class: "children [.property-description+&]:mt-1.5!"
|
|
59
|
+
}, Ze = Object.freeze({}), w = /*@__PURE__*/ m({
|
|
60
|
+
__name: "SchemaProperty",
|
|
61
|
+
props: {
|
|
62
|
+
is: {},
|
|
63
|
+
schema: {},
|
|
64
|
+
badges: {},
|
|
65
|
+
extensionSource: {},
|
|
66
|
+
noncollapsible: { type: Boolean },
|
|
67
|
+
level: { default: 0 },
|
|
68
|
+
depth: { default: 0 },
|
|
69
|
+
name: {},
|
|
70
|
+
required: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: !1
|
|
73
|
+
},
|
|
74
|
+
compact: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: !1
|
|
77
|
+
},
|
|
78
|
+
discriminator: {},
|
|
79
|
+
description: {},
|
|
80
|
+
hideModelNames: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: !1
|
|
83
|
+
},
|
|
84
|
+
hideHeading: { type: Boolean },
|
|
85
|
+
model: {},
|
|
86
|
+
modelName: {},
|
|
87
|
+
variant: {},
|
|
88
|
+
breadcrumb: {},
|
|
89
|
+
eventBus: {},
|
|
90
|
+
options: {},
|
|
91
|
+
propertyNamesEnum: {},
|
|
92
|
+
propertyNamesSchema: {},
|
|
93
|
+
schemaContext: {},
|
|
94
|
+
compositionPath: {},
|
|
95
|
+
compositionPathSegment: {},
|
|
96
|
+
cycleKey: {},
|
|
97
|
+
scrollTargetId: {},
|
|
98
|
+
specificationExtension: {},
|
|
99
|
+
expansion: {}
|
|
100
|
+
},
|
|
101
|
+
setup(m) {
|
|
102
|
+
let w = m, Qe = [
|
|
103
|
+
"oneOf",
|
|
104
|
+
"anyOf",
|
|
105
|
+
"allOf"
|
|
106
|
+
], T = l(() => ae(c(i(me(w.schema))), w.name)), E = l(() => {
|
|
107
|
+
let { name: e } = w, t = T.value;
|
|
108
|
+
return !!e && !!t?.allOf && oe(t).segments.some((e) => e.kind === "object" && s(e.schema));
|
|
109
|
+
}), D = l(() => w.breadcrumb ? w.name ? [...w.breadcrumb, w.name] : w.breadcrumb : void 0), O = l(() => w.compositionPathSegment ? [...w.compositionPath ?? [], w.compositionPathSegment] : w.compositionPath ?? []), $e = l(() => [...O.value, "items"]), et = l(() => {
|
|
110
|
+
let e = w.options.linkablePropertyPath, t = D.value;
|
|
111
|
+
return w.level <= 2 || !!(e && t && e.length === t.length && e.every((e, n) => e === t[n]));
|
|
112
|
+
}), tt = l(() => et.value && (D.value?.length ?? 0) > 0), k = l(() => {
|
|
113
|
+
let e = T.value;
|
|
114
|
+
if (!e || !C(e) || !ze(e.items)) return e;
|
|
115
|
+
let t = i(e.items);
|
|
116
|
+
return t === e.items ? e : {
|
|
117
|
+
...e,
|
|
118
|
+
items: t
|
|
119
|
+
};
|
|
120
|
+
}), nt = l(() => o(k.value)), rt = l(() => ot.value.length > 0), it = l(() => T.value ? te(T.value, w.options.document) : null), at = l(() => {
|
|
121
|
+
let e = T.value;
|
|
122
|
+
if (!e || !("properties" in e || "additionalProperties" in e) || "allOf" in e || !(w.schema && typeof w.schema == "object" && "allOf" in w.schema) && it.value) return !1;
|
|
123
|
+
let t = "type" in e ? e.type : void 0, n = typeof t == "string" && t !== "object";
|
|
124
|
+
return s(e) || !n;
|
|
125
|
+
}), A = l(() => {
|
|
126
|
+
let e = T.value;
|
|
127
|
+
return !e || !C(e) || e.items === void 0 ? !1 : nt.value;
|
|
128
|
+
}), ot = l(() => a(T.value)), st = l(() => {
|
|
129
|
+
let e = ne(T.value);
|
|
130
|
+
return e ? I(e) : null;
|
|
131
|
+
}), j = l(() => de(T.value, w.description)), ct = l(() => {
|
|
132
|
+
let e = T.value;
|
|
133
|
+
if (!e) return e;
|
|
134
|
+
let { oneOf: t, anyOf: n, allOf: r, not: i, discriminator: ee, externalDocs: te, ...a } = e;
|
|
135
|
+
if (j.value && "description" in a) {
|
|
136
|
+
let { description: e, ...t } = a;
|
|
137
|
+
return t;
|
|
138
|
+
}
|
|
139
|
+
return a;
|
|
140
|
+
}), M = l(() => fe(T.value, w.name, w.required)), lt = l(() => B.value || E.value ? [] : ee(T.value, w.options.document, it.value)), ut = l(() => w.extensionSource ? {
|
|
141
|
+
...w.extensionSource,
|
|
142
|
+
...T.value
|
|
143
|
+
} : T.value), dt = l(() => {
|
|
144
|
+
let e = ut.value;
|
|
145
|
+
if (!e || typeof e != "object") return !1;
|
|
146
|
+
for (let t in e) if (t.startsWith("x-")) return !0;
|
|
147
|
+
return !1;
|
|
148
|
+
}), ft = (e) => e === "allOf" ? w.schema?.discriminator ?? w.discriminator : w.schema?.discriminator, N = l(() => {
|
|
149
|
+
let e = k.value;
|
|
150
|
+
if (!e || !C(e) || e.items === void 0) return;
|
|
151
|
+
let t = S.schema(e.items);
|
|
152
|
+
return Qe.some((e) => Array.isArray(t?.[e]) && t[e]?.length === 1) ? c(t) : t;
|
|
153
|
+
}), pt = (e, t) => {
|
|
154
|
+
if (!e || !C(e) || o(e)) return [];
|
|
155
|
+
let n = [], r = t ?? S.schema(e.items);
|
|
156
|
+
for (; r && (n.push(r.externalDocs), C(r) && !o(r));) r = S.schema(r.items);
|
|
157
|
+
return n;
|
|
158
|
+
}, mt = l(() => {
|
|
159
|
+
if (E.value) return;
|
|
160
|
+
let e = pt(k.value, N.value);
|
|
161
|
+
if (!e.some(Boolean)) return;
|
|
162
|
+
let t = lt.value.find(({ composition: e }) => e === "allOf")?.value, [n] = oe(t).segments, r = n?.kind === "object" ? n.schema : void 0, i = r && !s(r) ? pt(r) : [];
|
|
163
|
+
return e.filter((e, t) => e !== void 0 && !Be(e, i[t]));
|
|
164
|
+
}), ht = l(() => {
|
|
165
|
+
let e = T.value;
|
|
166
|
+
if (e && C(e)) return ce(e.items);
|
|
167
|
+
}), P = l(() => ({
|
|
168
|
+
compact: w.compact,
|
|
169
|
+
eventBus: w.eventBus,
|
|
170
|
+
hideModelNames: L.value,
|
|
171
|
+
level: w.level + 1,
|
|
172
|
+
name: w.name,
|
|
173
|
+
options: w.options,
|
|
174
|
+
schemaContext: w.schemaContext
|
|
175
|
+
})), gt = l(() => at.value ? {
|
|
176
|
+
...P.value,
|
|
177
|
+
breadcrumb: D.value,
|
|
178
|
+
compositionPath: O.value,
|
|
179
|
+
cycleKey: w.cycleKey,
|
|
180
|
+
schema: ct.value,
|
|
181
|
+
discriminator: T.value?.discriminator ?? w.discriminator
|
|
182
|
+
} : null), _t = l(() => A.value && N.value ? {
|
|
183
|
+
...P.value,
|
|
184
|
+
compositionPath: $e.value,
|
|
185
|
+
cycleKey: ht.value,
|
|
186
|
+
schema: S.schema(N.value)
|
|
187
|
+
} : null), F = l(() => {
|
|
188
|
+
let { cycleKey: e } = w;
|
|
189
|
+
return E.value ? {
|
|
190
|
+
...P.value,
|
|
191
|
+
breadcrumb: D.value,
|
|
192
|
+
compositionPath: O.value,
|
|
193
|
+
cycleKey: e,
|
|
194
|
+
schema: T.value
|
|
195
|
+
} : gt.value ?? _t.value;
|
|
196
|
+
}), vt = l(() => !gt.value && !!_t.value), yt = l(() => w.name === w.discriminator?.propertyName ? w.discriminator?.[r]?.value : void 0), bt = l(() => !!(w.name && w.discriminator?.propertyName === w.name)), { translate: I } = he(), xt = Ie(w, "model"), St = l(() => xt.value?.label ?? w.modelName ?? null), L = l(() => w.hideModelNames || !!w.options.hideModelNames), R = l(() => E.value || at.value || A.value), Ct = De(se, void 0), z = l(() => vt.value ? ht.value : w.cycleKey), B = l(() => z.value != null && !!Ct?.has(z.value)), wt = l(() => {
|
|
197
|
+
let e = z.value;
|
|
198
|
+
if (typeof e == "string") {
|
|
199
|
+
let t = re(e);
|
|
200
|
+
if (t) return t;
|
|
201
|
+
}
|
|
202
|
+
return St.value || w.name || I("schema.schema");
|
|
203
|
+
}), V = w.expansion ?? ue(Ie(() => w.scrollTargetId ?? "")), Tt = v(), H = l(() => le(D.value) || `~anonymous-${Tt}`), U = l(() => R.value && !w.noncollapsible && M.value && !B.value), W = l(() => R.value && !!w.noncollapsible && !!w.name && M.value && !B.value), G = l(() => U.value && V.isExpanded(H.value, {
|
|
204
|
+
cyclic: B.value,
|
|
205
|
+
defaultOpen: !!w.options.expandAllSchemaProperties
|
|
206
|
+
})), K = je(!1);
|
|
207
|
+
y(G, (e, t) => {
|
|
208
|
+
e ? K.value &&= (V.untilFound.release(), !1) : t && (K.value = Et() && V.untilFound.acquire());
|
|
209
|
+
}), Ae(() => {
|
|
210
|
+
K.value &&= (V.untilFound.release(), !1);
|
|
211
|
+
});
|
|
212
|
+
let Et = () => typeof document < "u" && "onbeforematch" in document.body, Dt = l(() => W.value || U.value && (G.value || K.value)), Ot = l(() => W.value || G.value ? void 0 : "until-found"), kt = l(() => R.value && !B.value && !U.value && !W.value), At = v(), q = v(), jt = v(), Mt = Le("treePanel"), J = Le("treeToggle"), Y = null, X = () => {
|
|
213
|
+
Y?.removeAttribute("data-heading-hovered"), Y = null;
|
|
214
|
+
}, Nt = {
|
|
215
|
+
pointerenter: (e) => {
|
|
216
|
+
X();
|
|
217
|
+
let t = e.currentTarget instanceof HTMLElement ? e.currentTarget.parentElement : null;
|
|
218
|
+
t && (t.setAttribute("data-heading-hovered", ""), Y = t);
|
|
219
|
+
},
|
|
220
|
+
pointerleave: X
|
|
221
|
+
};
|
|
222
|
+
y(U, (e) => {
|
|
223
|
+
e || X();
|
|
224
|
+
}), ke(X), y(G, (e) => {
|
|
225
|
+
if (e) return;
|
|
226
|
+
let t = Mt.value?.$el;
|
|
227
|
+
t?.removeAttribute("data-rail-hovered"), t?.parentElement?.removeAttribute("data-child-rail-hovered");
|
|
228
|
+
});
|
|
229
|
+
let Z = l(() => vt.value ? N.value : ct.value), Pt = l(() => Z.value ? pe(Z.value, void 0, w.options) : []), Q = l(() => {
|
|
230
|
+
if (!R.value) return null;
|
|
231
|
+
let e = Z.value;
|
|
232
|
+
if (!e) return null;
|
|
233
|
+
let t = w.options.hideReadOnly || w.options.hideWriteOnly ? Pt.value.length : s(e) && e.properties ? Object.keys(e.properties).length : 0, n = "patternProperties" in e && e.patternProperties ? Object.keys(e.patternProperties).length : 0, r = "additionalProperties" in e && e.additionalProperties ? 1 : 0, i = t + n + r;
|
|
234
|
+
return i === 0 ? null : I("schema.propertyCount", { count: String(i) });
|
|
235
|
+
}), Ft = l(() => ie(T.value, { hideModelNames: L.value })), It = l(() => St.value || I("schema.schema")), $ = () => {
|
|
236
|
+
let e = !G.value;
|
|
237
|
+
if (!e) {
|
|
238
|
+
let e = document.activeElement, t = J.value instanceof HTMLElement ? J.value : J.value?.$el;
|
|
239
|
+
e && Mt.value?.$el.contains(e) && t?.focus();
|
|
240
|
+
}
|
|
241
|
+
V.setExpanded(H.value, e);
|
|
242
|
+
}, Lt = (e) => {
|
|
243
|
+
if (!U.value) return;
|
|
244
|
+
let t = e.target;
|
|
245
|
+
t instanceof Element && t.closest("a, button, [role=\"button\"], input, select, label") || window.getSelection()?.toString() || $();
|
|
246
|
+
}, Rt = () => {
|
|
247
|
+
V.setExpanded(H.value, !0);
|
|
248
|
+
};
|
|
249
|
+
return (r, i) => (g(), u(Ne(m.is ?? "li"), { class: Oe(["property", [
|
|
250
|
+
`property--level-${m.level}`,
|
|
251
|
+
{
|
|
252
|
+
"property--compact": m.compact,
|
|
253
|
+
"property--deprecated": T.value?.deprecated
|
|
254
|
+
},
|
|
255
|
+
"property--tree grid! grid-cols-[minmax(0,1fr)] border-b-0! px-0! py-[var(--schema-row-pad,6px)]!",
|
|
256
|
+
{ "property--tree-container": !U.value && !B.value && (R.value || !M.value) },
|
|
257
|
+
`property--depth-${m.depth}`
|
|
258
|
+
]]) }, {
|
|
259
|
+
default: b(() => [
|
|
260
|
+
U.value ? (g(), u(be, {
|
|
261
|
+
key: 0,
|
|
262
|
+
ref: "treeToggle",
|
|
263
|
+
class: "absolute start-[calc(0px_-_var(--schema-toggle-half,12px)_-_var(--schema-gutter,16px))] top-2.5 z-[1] col-start-1 row-start-1 -translate-y-1/2 print:hidden",
|
|
264
|
+
countId: Q.value ? _(jt) : void 0,
|
|
265
|
+
fallbackLabel: It.value,
|
|
266
|
+
nameId: m.name ? _(q) : void 0,
|
|
267
|
+
open: G.value,
|
|
268
|
+
panelId: _(At),
|
|
269
|
+
panelRendered: Dt.value,
|
|
270
|
+
onToggle: $
|
|
271
|
+
}, null, 8, [
|
|
272
|
+
"countId",
|
|
273
|
+
"fallbackLabel",
|
|
274
|
+
"nameId",
|
|
275
|
+
"open",
|
|
276
|
+
"panelId",
|
|
277
|
+
"panelRendered"
|
|
278
|
+
])) : d("", !0),
|
|
279
|
+
M.value ? (g(), u(xe, h({
|
|
280
|
+
key: 1,
|
|
281
|
+
badges: m.badges,
|
|
282
|
+
class: ["group", [{ "cursor-pointer": U.value }, "relative row-start-1 min-h-5 content-center [&>*:has(+.copy-link-trailing)]:me-0!"]],
|
|
283
|
+
discriminatorValue: yt.value,
|
|
284
|
+
enum: rt.value,
|
|
285
|
+
eventBus: m.eventBus,
|
|
286
|
+
hideModelNames: L.value,
|
|
287
|
+
isDiscriminator: bt.value,
|
|
288
|
+
keyKind: m.variant === "additionalProperties" ? "additional" : m.variant === "patternProperties" ? "pattern" : void 0,
|
|
289
|
+
model: xt.value,
|
|
290
|
+
modelLinkOptions: {
|
|
291
|
+
hideModels: m.options.hideModels,
|
|
292
|
+
document: m.options.document
|
|
293
|
+
},
|
|
294
|
+
modelName: m.modelName,
|
|
295
|
+
propertyNames: m.propertyNamesSchema,
|
|
296
|
+
recursiveTo: B.value ? wt.value : void 0,
|
|
297
|
+
required: m.required,
|
|
298
|
+
value: T.value
|
|
299
|
+
}, Fe(U.value ? Nt : _(Ze)), { onClick: Lt }), Te({ _: 2 }, [
|
|
300
|
+
m.name ? {
|
|
301
|
+
name: "name",
|
|
302
|
+
fn: b(() => [tt.value ? (g(), u(n, {
|
|
303
|
+
key: 0,
|
|
304
|
+
breadcrumb: D.value
|
|
305
|
+
}, {
|
|
306
|
+
default: b(() => [we("span", { id: _(q) }, [m.variant === "patternProperties" ? (g(), f("span", He, [p(_(x), {
|
|
307
|
+
preset: "property",
|
|
308
|
+
text: m.name
|
|
309
|
+
}, null, 8, ["text"])])) : m.variant === "additionalProperties" ? (g(), f("span", Ue, [p(_(x), {
|
|
310
|
+
preset: "property",
|
|
311
|
+
text: m.name
|
|
312
|
+
}, null, 8, ["text"])])) : (g(), u(_(x), {
|
|
313
|
+
key: 2,
|
|
314
|
+
preset: "property",
|
|
315
|
+
text: m.name
|
|
316
|
+
}, null, 8, ["text"]))], 8, Ve)]),
|
|
317
|
+
_: 1
|
|
318
|
+
}, 8, ["breadcrumb"])) : (g(), f("span", {
|
|
319
|
+
key: 1,
|
|
320
|
+
id: _(q)
|
|
321
|
+
}, [m.variant === "patternProperties" ? (g(), f("span", Ge, [p(_(x), {
|
|
322
|
+
preset: "property",
|
|
323
|
+
text: m.name
|
|
324
|
+
}, null, 8, ["text"])])) : m.variant === "additionalProperties" ? (g(), f("span", Ke, [p(_(x), {
|
|
325
|
+
preset: "property",
|
|
326
|
+
text: m.name
|
|
327
|
+
}, null, 8, ["text"])])) : (g(), u(_(x), {
|
|
328
|
+
key: 2,
|
|
329
|
+
preset: "property",
|
|
330
|
+
text: m.name
|
|
331
|
+
}, null, 8, ["text"]))], 8, We))]),
|
|
332
|
+
key: "0"
|
|
333
|
+
} : void 0,
|
|
334
|
+
T.value?.example === void 0 ? void 0 : {
|
|
335
|
+
name: "example",
|
|
336
|
+
fn: b(() => [Ee(" Example: " + Pe(T.value.example), 1)]),
|
|
337
|
+
key: "1"
|
|
338
|
+
},
|
|
339
|
+
U.value && !G.value ? {
|
|
340
|
+
name: "preview",
|
|
341
|
+
fn: b(() => [p(_e, {
|
|
342
|
+
"aria-hidden": "true",
|
|
343
|
+
class: "mr-0!",
|
|
344
|
+
propertyNames: Pt.value,
|
|
345
|
+
schema: Z.value
|
|
346
|
+
}, null, 8, ["propertyNames", "schema"])]),
|
|
347
|
+
key: "2"
|
|
348
|
+
} : void 0,
|
|
349
|
+
m.name && et.value && D.value ? {
|
|
350
|
+
name: "trailing",
|
|
351
|
+
fn: b(() => [p(t, {
|
|
352
|
+
anchorId: D.value.join("."),
|
|
353
|
+
eventBus: m.eventBus,
|
|
354
|
+
propertyName: m.name
|
|
355
|
+
}, null, 8, [
|
|
356
|
+
"anchorId",
|
|
357
|
+
"eventBus",
|
|
358
|
+
"propertyName"
|
|
359
|
+
])]),
|
|
360
|
+
key: "3"
|
|
361
|
+
} : void 0
|
|
362
|
+
]), 1040, [
|
|
363
|
+
"badges",
|
|
364
|
+
"class",
|
|
365
|
+
"discriminatorValue",
|
|
366
|
+
"enum",
|
|
367
|
+
"eventBus",
|
|
368
|
+
"hideModelNames",
|
|
369
|
+
"isDiscriminator",
|
|
370
|
+
"keyKind",
|
|
371
|
+
"model",
|
|
372
|
+
"modelLinkOptions",
|
|
373
|
+
"modelName",
|
|
374
|
+
"propertyNames",
|
|
375
|
+
"recursiveTo",
|
|
376
|
+
"required",
|
|
377
|
+
"value"
|
|
378
|
+
])) : d("", !0),
|
|
379
|
+
j.value || st.value ? (g(), f("div", qe, [p(_(Re), { value: j.value || st.value || "" }, null, 8, ["value"])])) : d("", !0),
|
|
380
|
+
T.value?.externalDocs || mt.value?.length ? (g(), f("div", Je, [p(e, {
|
|
381
|
+
inline: "",
|
|
382
|
+
value: T.value?.externalDocs
|
|
383
|
+
}, null, 8, ["value"]), (g(!0), f(Ce, null, Me(mt.value, (t, n) => (g(), u(e, {
|
|
384
|
+
key: n,
|
|
385
|
+
inline: "",
|
|
386
|
+
value: t
|
|
387
|
+
}, null, 8, ["value"]))), 128))])) : d("", !0),
|
|
388
|
+
m.propertyNamesEnum && m.propertyNamesEnum.length > 0 ? (g(), u(ye, {
|
|
389
|
+
key: 4,
|
|
390
|
+
propertyNames: "",
|
|
391
|
+
value: { enum: m.propertyNamesEnum }
|
|
392
|
+
}, null, 8, ["value"])) : d("", !0),
|
|
393
|
+
ot.value.length > 0 && !A.value && !Ft.value ? (g(), u(ye, {
|
|
394
|
+
key: 5,
|
|
395
|
+
value: T.value
|
|
396
|
+
}, null, 8, ["value"])) : d("", !0),
|
|
397
|
+
U.value && Q.value ? (g(), f("span", {
|
|
398
|
+
key: 6,
|
|
399
|
+
id: _(jt),
|
|
400
|
+
class: "screenreader-only"
|
|
401
|
+
}, Pe(Q.value), 9, Ye)) : d("", !0),
|
|
402
|
+
Dt.value ? (g(), u(Se, {
|
|
403
|
+
key: 7,
|
|
404
|
+
id: _(At),
|
|
405
|
+
ref: "treePanel",
|
|
406
|
+
class: "property-children mt-1.5 mb-0.5 [&_.schema-card]:mb-0! [&_.schema-card]:pb-0! [&_.schema-properties]:mb-0! [&_.schema-properties]:pb-0! [&_ul]:my-0! [&_ul]:py-0! [&[hidden=until-found]]:my-0 [&[hidden=until-found]]:border-s-0 [&[hidden]:not([hidden=until-found])]:hidden",
|
|
407
|
+
closeOnRail: U.value,
|
|
408
|
+
depth: m.depth + 1,
|
|
409
|
+
hidden: Ot.value,
|
|
410
|
+
onBeforematch: Rt,
|
|
411
|
+
onClose: $
|
|
412
|
+
}, {
|
|
413
|
+
default: b(() => [F.value ? (g(), u(ge, h({ key: 0 }, F.value, {
|
|
414
|
+
depth: m.depth + 1,
|
|
415
|
+
expansion: _(V),
|
|
416
|
+
noncollapsible: "",
|
|
417
|
+
scrollTargetId: m.scrollTargetId,
|
|
418
|
+
specificationExtension: m.specificationExtension
|
|
419
|
+
}), null, 16, [
|
|
420
|
+
"depth",
|
|
421
|
+
"expansion",
|
|
422
|
+
"scrollTargetId",
|
|
423
|
+
"specificationExtension"
|
|
424
|
+
])) : d("", !0)]),
|
|
425
|
+
_: 1
|
|
426
|
+
}, 8, [
|
|
427
|
+
"id",
|
|
428
|
+
"closeOnRail",
|
|
429
|
+
"depth",
|
|
430
|
+
"hidden"
|
|
431
|
+
])) : d("", !0),
|
|
432
|
+
kt.value ? (g(), f("div", Xe, [F.value ? (g(), u(ge, h({ key: 0 }, F.value, {
|
|
433
|
+
depth: m.depth,
|
|
434
|
+
expansion: _(V),
|
|
435
|
+
noncollapsible: "",
|
|
436
|
+
scrollTargetId: m.scrollTargetId,
|
|
437
|
+
specificationExtension: m.specificationExtension
|
|
438
|
+
}), null, 16, [
|
|
439
|
+
"depth",
|
|
440
|
+
"expansion",
|
|
441
|
+
"scrollTargetId",
|
|
442
|
+
"specificationExtension"
|
|
443
|
+
])) : d("", !0)])) : d("", !0),
|
|
444
|
+
(g(!0), f(Ce, null, Me(lt.value, (e) => (g(), u(ve, {
|
|
445
|
+
key: e.composition,
|
|
446
|
+
breadcrumb: D.value,
|
|
447
|
+
compact: m.compact,
|
|
448
|
+
composition: e.composition,
|
|
449
|
+
compositionPath: O.value,
|
|
450
|
+
depth: m.depth,
|
|
451
|
+
discriminator: ft(e.composition),
|
|
452
|
+
eventBus: m.eventBus,
|
|
453
|
+
expansion: _(V),
|
|
454
|
+
hideHeading: m.hideHeading,
|
|
455
|
+
hideModelNames: L.value,
|
|
456
|
+
level: m.level,
|
|
457
|
+
name: m.name,
|
|
458
|
+
noncollapsible: m.noncollapsible,
|
|
459
|
+
options: m.options,
|
|
460
|
+
schema: e.value,
|
|
461
|
+
schemaContext: m.schemaContext,
|
|
462
|
+
scrollTargetId: m.scrollTargetId,
|
|
463
|
+
specificationExtension: m.specificationExtension
|
|
464
|
+
}, null, 8, [
|
|
465
|
+
"breadcrumb",
|
|
466
|
+
"compact",
|
|
467
|
+
"composition",
|
|
468
|
+
"compositionPath",
|
|
469
|
+
"depth",
|
|
470
|
+
"discriminator",
|
|
471
|
+
"eventBus",
|
|
472
|
+
"expansion",
|
|
473
|
+
"hideHeading",
|
|
474
|
+
"hideModelNames",
|
|
475
|
+
"level",
|
|
476
|
+
"name",
|
|
477
|
+
"noncollapsible",
|
|
478
|
+
"options",
|
|
479
|
+
"schema",
|
|
480
|
+
"schemaContext",
|
|
481
|
+
"scrollTargetId",
|
|
482
|
+
"specificationExtension"
|
|
483
|
+
]))), 128)),
|
|
484
|
+
dt.value && m.specificationExtension ? (g(), u(Ne(m.specificationExtension), {
|
|
485
|
+
key: 9,
|
|
486
|
+
showExtensions: m.options.showExtensions,
|
|
487
|
+
value: ut.value
|
|
488
|
+
}, null, 8, ["showExtensions", "value"])) : d("", !0)
|
|
489
|
+
]),
|
|
490
|
+
_: 1
|
|
491
|
+
}, 8, ["class"]));
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
export { w as default };
|
|
7
495
|
|
|
8
496
|
//# sourceMappingURL=SchemaProperty.vue.js.map
|