@scalar/api-reference 1.31.8 → 1.31.10
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 +60 -0
- package/dist/browser/standalone.js +18628 -18480
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +10 -30
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +240 -222
- package/dist/components/Content/Content.vue.d.ts +2 -0
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +91 -81
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -3
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +93 -83
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +84 -86
- package/dist/components/Content/Models/Models.vue.js +1 -1
- package/dist/components/Content/Models/Models.vue2.js +4 -4
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +53 -53
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +135 -121
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +161 -191
- package/dist/components/Content/Schema/helpers/schema-name.d.ts +13 -0
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +59 -13
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsList.vue2.js +22 -25
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -3
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +46 -47
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +45 -47
- package/dist/components/Content/Tag/TagList.vue.d.ts +2 -0
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +40 -41
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagSection.vue.js +2 -2
- package/dist/components/Content/Tag/TagSection.vue2.js +21 -21
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +16 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +12 -11
- package/dist/components/MobileHeader.vue.d.ts +1 -8
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.js +1 -1
- package/dist/components/MobileHeader.vue2.js +19 -19
- package/dist/components/Section/Section.vue.js +2 -2
- package/dist/components/Section/Section.vue2.js +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue2.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -4
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +113 -159
- package/dist/components/Sidebar/SidebarElement.vue.d.ts +2 -11
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue2.js +85 -81
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +16 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue.js +2 -2
- package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +11 -5
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +54 -42
- package/dist/features/ApiClientModal/useApiClient.d.ts +74 -72
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +20 -20
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +0 -2
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +40 -67
- package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +5 -5
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +200 -179
- package/dist/features/Operation/Operation.vue.d.ts +0 -1
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +31 -34
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +3 -2
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +62 -64
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -2
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +2 -2
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +31 -38
- package/dist/features/Operation/hooks/useResponses.d.ts +3 -3
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useResponses.js +12 -13
- package/dist/features/Operation/index.d.ts +0 -1
- package/dist/features/Operation/index.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +4 -6
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +85 -72
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -4
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +114 -98
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +1 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +61 -64
- package/dist/features/sidebar/helpers/create-sidebar.d.ts +4 -2
- package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
- package/dist/features/sidebar/helpers/create-sidebar.js +33 -0
- package/dist/features/sidebar/hooks/useSidebar.d.ts +2 -3
- package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -1
- package/dist/features/sidebar/hooks/useSidebar.js +18 -0
- package/dist/features/sidebar/index.d.ts +2 -1
- package/dist/features/sidebar/index.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -2
- package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/get-tag.js +7 -0
- package/dist/features/traverse-schema/helpers/traverse-description.js +33 -0
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-document.js +34 -0
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +5 -3
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-paths.js +32 -0
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +2 -2
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-schemas.js +23 -0
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +2 -2
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-tags.js +43 -0
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +2 -2
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-webhooks.js +26 -0
- package/dist/features/traverse-schema/index.d.ts +3 -3
- package/dist/features/traverse-schema/index.d.ts.map +1 -1
- package/dist/features/traverse-schema/types.d.ts +8 -5
- package/dist/features/traverse-schema/types.d.ts.map +1 -1
- package/dist/helpers/parse.d.ts +2 -1
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +72 -88
- package/dist/hooks/useMultipleDocuments.d.ts +6 -6
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts +1 -1
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +14 -9
- package/dist/hooks/useOperation.d.ts +7 -7
- package/dist/hooks/useOperation.d.ts.map +1 -1
- package/dist/hooks/useOperation.js +13 -12
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -25
- package/dist/legacy/fixtures/index.d.ts +1 -1
- package/dist/libs/openapi.d.ts +3 -4
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +8 -9
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +4 -18
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +68 -45
- package/package.json +16 -16
- package/dist/components/Content/Webhooks/index.d.ts +0 -2
- package/dist/components/Content/Webhooks/index.d.ts.map +0 -1
- package/dist/features/Operation/Webhooks.vue.d.ts +0 -7
- package/dist/features/Operation/Webhooks.vue.d.ts.map +0 -1
- package/dist/features/Operation/Webhooks.vue.js +0 -7
- package/dist/features/Operation/Webhooks.vue2.js +0 -121
- package/dist/features/Operation/components/Webhook.vue.d.ts +0 -7
- package/dist/features/Operation/components/Webhook.vue.d.ts.map +0 -1
- package/dist/features/Operation/components/Webhook.vue.js +0 -7
- package/dist/features/Operation/components/Webhook.vue2.js +0 -29
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +0 -8
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +0 -1
- package/dist/features/traverse-schema/helpers/operation-id-params.js +0 -8
- package/dist/hooks/useSidebar.d.ts +0 -53
- package/dist/hooks/useSidebar.d.ts.map +0 -1
- package/dist/hooks/useSidebar.js +0 -248
- package/dist/legacy/fixtures/httpRequestMethods.js +0 -14
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarMarkdown as
|
|
4
|
-
import { optimizeValueForDisplay as
|
|
5
|
-
import { DISCRIMINATOR_CONTEXT as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as W, computed as o, inject as Y, createBlock as h, openBlock as t, resolveDynamicComponent as _, normalizeClass as R, withCtx as f, createCommentVNode as l, createElementBlock as r, createVNode as m, createSlots as x, createTextVNode as B, toDisplayString as v, unref as p, Fragment as g, renderList as M, createElementVNode as k } from "vue";
|
|
2
|
+
import { Disclosure as ee, DisclosurePanel as ne, DisclosureButton as ie } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as O, ScalarIcon as te } from "@scalar/components";
|
|
4
|
+
import { optimizeValueForDisplay as ae, compositions as re } from "./helpers/optimizeValueForDisplay.js";
|
|
5
|
+
import { DISCRIMINATOR_CONTEXT as oe } from "../../../hooks/useDiscriminator.js";
|
|
6
|
+
import T from "./Schema.vue.js";
|
|
7
|
+
import q from "./SchemaComposition.vue.js";
|
|
8
|
+
import se from "./SchemaDiscriminator.vue.js";
|
|
9
|
+
import le from "./SchemaPropertyHeading.vue.js";
|
|
10
|
+
import me from "../../SpecificationExtension/SpecificationExtension.vue.js";
|
|
11
|
+
const pe = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "property-description"
|
|
14
|
-
},
|
|
14
|
+
}, ce = {
|
|
15
15
|
key: 2,
|
|
16
16
|
class: "property-description"
|
|
17
|
-
},
|
|
17
|
+
}, de = {
|
|
18
18
|
key: 3,
|
|
19
19
|
class: "property-enum"
|
|
20
|
-
},
|
|
20
|
+
}, ue = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "property-list"
|
|
23
|
-
},
|
|
23
|
+
}, ye = { class: "property-heading" }, he = { class: "property-name" }, fe = { class: "property-description" }, ve = {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "property-enum-values"
|
|
26
|
-
},
|
|
26
|
+
}, ge = { class: "property-enum-value-label" }, be = { class: "property-enum-value-label" }, ke = {
|
|
27
27
|
key: 4,
|
|
28
28
|
class: "children"
|
|
29
|
-
},
|
|
29
|
+
}, De = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "children"
|
|
32
|
-
},
|
|
32
|
+
}, Ve = /* @__PURE__ */ W({
|
|
33
33
|
__name: "SchemaProperty",
|
|
34
34
|
props: {
|
|
35
35
|
is: {},
|
|
@@ -51,8 +51,8 @@ const ce = {
|
|
|
51
51
|
isDiscriminator: { type: Boolean }
|
|
52
52
|
},
|
|
53
53
|
emits: ["update:modelValue"],
|
|
54
|
-
setup(
|
|
55
|
-
const
|
|
54
|
+
setup(F, { emit: U }) {
|
|
55
|
+
const D = F, $ = U, E = {
|
|
56
56
|
integer: {
|
|
57
57
|
_default: "Integer numbers.",
|
|
58
58
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -65,131 +65,145 @@ const ce = {
|
|
|
65
65
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
66
66
|
binary: "binary data, used to describe files"
|
|
67
67
|
}
|
|
68
|
-
},
|
|
69
|
-
var
|
|
70
|
-
return (e == null ? void 0 : e.enum) || ((
|
|
71
|
-
},
|
|
72
|
-
() =>
|
|
73
|
-
),
|
|
74
|
-
() =>
|
|
75
|
-
),
|
|
76
|
-
() =>
|
|
77
|
-
),
|
|
68
|
+
}, P = (e, n) => n != null && n.properties || n != null && n.additionalProperties || n != null && n.patternProperties || n != null && n.allOf ? null : e || (n == null ? void 0 : n.description) || null, C = (e) => !e || !E[e.type] ? null : E[e.type][e.format || "_default"], u = (e) => {
|
|
69
|
+
var n;
|
|
70
|
+
return (e == null ? void 0 : e.enum) || ((n = e == null ? void 0 : e.items) == null ? void 0 : n.enum) || [];
|
|
71
|
+
}, H = o(
|
|
72
|
+
() => u(i.value).length > 9
|
|
73
|
+
), V = o(() => H.value ? 5 : 9), z = o(
|
|
74
|
+
() => u(i.value).slice(0, V.value)
|
|
75
|
+
), L = o(
|
|
76
|
+
() => u(i.value).slice(V.value)
|
|
77
|
+
), i = o(() => ae(D.value)), d = Y(oe, null), s = o(() => {
|
|
78
78
|
var e;
|
|
79
|
-
return (e = d == null ? void 0 : d.value) != null && e.mergedSchema ? d.value.mergedSchema :
|
|
80
|
-
}),
|
|
79
|
+
return D.level > 0 ? i.value : (e = d == null ? void 0 : d.value) != null && e.mergedSchema ? d.value.mergedSchema : i.value;
|
|
80
|
+
}), Z = o(() => {
|
|
81
81
|
var e;
|
|
82
|
-
return ((e = d == null ? void 0 : d.value) == null ? void 0 : e.selectedType) || (
|
|
83
|
-
}),
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
const e =
|
|
82
|
+
return ((e = d == null ? void 0 : d.value) == null ? void 0 : e.selectedType) || (D.discriminatorMapping ? Object.keys(D.discriminatorMapping)[0] : "");
|
|
83
|
+
}), X = (e, n, y, N, S) => n || y || N || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || S, j = (e) => {
|
|
84
|
+
$("update:modelValue", e);
|
|
85
|
+
}, A = o(() => {
|
|
86
|
+
const e = i.value;
|
|
87
87
|
if (!(e != null && e.items) || typeof e.items != "object")
|
|
88
88
|
return !1;
|
|
89
|
-
const
|
|
90
|
-
return "type" in
|
|
91
|
-
}),
|
|
92
|
-
const
|
|
93
|
-
return !(
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
89
|
+
const n = e.items;
|
|
90
|
+
return "type" in n && ["object"].includes(n.type) || "$ref" in n || "discriminator" in n || "allOf" in n || "oneOf" in n || "anyOf" in n;
|
|
91
|
+
}), G = (e) => {
|
|
92
|
+
const n = i.value;
|
|
93
|
+
return !(n != null && n.items) || typeof n.items != "object" || !(e in n.items) ? !1 : !A.value;
|
|
94
|
+
}, J = o(() => A.value), K = o(() => {
|
|
95
|
+
if (!i.value)
|
|
96
|
+
return !1;
|
|
97
|
+
const e = i.value, n = e.type === "object" || Array.isArray(e.type) && e.type.includes("object"), y = e.properties || e.additionalProperties;
|
|
98
|
+
return n && y;
|
|
99
|
+
}), Q = o(() => {
|
|
100
|
+
var n;
|
|
101
|
+
if (!((n = i.value) != null && n["x-enumDescriptions"]))
|
|
102
|
+
return !1;
|
|
103
|
+
const e = i.value["x-enumDescriptions"];
|
|
104
|
+
return typeof e == "object" && !Array.isArray(e);
|
|
105
|
+
});
|
|
106
|
+
return (e, n) => {
|
|
107
|
+
var y;
|
|
108
|
+
return t(), h(_(e.is ?? "li"), {
|
|
109
|
+
class: R(["property", [
|
|
110
|
+
(P(e.description, i.value), ""),
|
|
100
111
|
`property--level-${e.level}`,
|
|
101
112
|
{
|
|
102
113
|
"property--compact": e.compact,
|
|
103
|
-
"property--deprecated": (
|
|
114
|
+
"property--deprecated": (y = i.value) == null ? void 0 : y.deprecated
|
|
104
115
|
}
|
|
105
116
|
]])
|
|
106
117
|
}, {
|
|
107
|
-
default:
|
|
108
|
-
var
|
|
118
|
+
default: f(() => {
|
|
119
|
+
var N, S, w;
|
|
109
120
|
return [
|
|
110
|
-
|
|
111
|
-
|
|
121
|
+
X(
|
|
122
|
+
i.value,
|
|
112
123
|
e.name,
|
|
113
124
|
e.additional,
|
|
114
125
|
e.pattern,
|
|
115
126
|
e.required
|
|
116
|
-
) ? (t(),
|
|
127
|
+
) ? (t(), h(le, {
|
|
117
128
|
key: 0,
|
|
118
129
|
additional: e.additional,
|
|
119
|
-
enum:
|
|
130
|
+
enum: u(i.value).length > 0,
|
|
120
131
|
pattern: e.pattern,
|
|
121
132
|
required: e.required,
|
|
122
|
-
value:
|
|
133
|
+
value: i.value,
|
|
123
134
|
schemas: e.schemas,
|
|
124
135
|
hideModelNames: e.hideModelNames
|
|
125
|
-
},
|
|
136
|
+
}, x({ _: 2 }, [
|
|
126
137
|
e.name ? {
|
|
127
138
|
name: "name",
|
|
128
|
-
fn:
|
|
129
|
-
B(
|
|
139
|
+
fn: f(() => [
|
|
140
|
+
B(v(e.name), 1)
|
|
130
141
|
]),
|
|
131
142
|
key: "0"
|
|
132
143
|
} : void 0,
|
|
133
|
-
(
|
|
144
|
+
(N = i.value) != null && N.example ? {
|
|
134
145
|
name: "example",
|
|
135
|
-
fn:
|
|
136
|
-
B(" Example: " +
|
|
146
|
+
fn: f(() => [
|
|
147
|
+
B(" Example: " + v(i.value.example), 1)
|
|
137
148
|
]),
|
|
138
149
|
key: "1"
|
|
139
150
|
} : void 0
|
|
140
151
|
]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas", "hideModelNames"])) : l("", !0),
|
|
141
|
-
|
|
142
|
-
m(p(
|
|
143
|
-
value:
|
|
152
|
+
P(e.description, i.value) ? (t(), r("div", pe, [
|
|
153
|
+
m(p(O), {
|
|
154
|
+
value: P(e.description, i.value)
|
|
144
155
|
}, null, 8, ["value"])
|
|
145
|
-
])) : C(
|
|
146
|
-
m(p(
|
|
147
|
-
value: C(
|
|
156
|
+
])) : C(i.value) ? (t(), r("div", ce, [
|
|
157
|
+
m(p(O), {
|
|
158
|
+
value: C(i.value) || ""
|
|
148
159
|
}, null, 8, ["value"])
|
|
149
160
|
])) : l("", !0),
|
|
150
|
-
((
|
|
151
|
-
|
|
152
|
-
(t(!0),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
161
|
+
((S = u(i.value)) == null ? void 0 : S.length) > 0 && !e.isDiscriminator ? (t(), r("div", de, [
|
|
162
|
+
Q.value ? (t(), r("div", ue, [
|
|
163
|
+
(t(!0), r(g, null, M(u(i.value), (a) => {
|
|
164
|
+
var c, b;
|
|
165
|
+
return t(), r("div", {
|
|
166
|
+
key: a,
|
|
167
|
+
class: "property"
|
|
168
|
+
}, [
|
|
169
|
+
k("div", ye, [
|
|
170
|
+
k("div", he, v(a), 1)
|
|
171
|
+
]),
|
|
172
|
+
k("div", fe, [
|
|
173
|
+
m(p(O), {
|
|
174
|
+
value: (b = (c = i.value) == null ? void 0 : c["x-enumDescriptions"]) == null ? void 0 : b[a]
|
|
175
|
+
}, null, 8, ["value"])
|
|
176
|
+
])
|
|
177
|
+
]);
|
|
178
|
+
}), 128))
|
|
179
|
+
])) : (t(), r("ul", ve, [
|
|
180
|
+
(t(!0), r(g, null, M(z.value, (a) => (t(), r("li", {
|
|
167
181
|
key: a,
|
|
168
182
|
class: "property-enum-value"
|
|
169
183
|
}, [
|
|
170
|
-
|
|
184
|
+
k("span", ge, v(a), 1)
|
|
171
185
|
]))), 128)),
|
|
172
|
-
|
|
173
|
-
default:
|
|
174
|
-
m(p(
|
|
175
|
-
default:
|
|
176
|
-
(t(!0),
|
|
177
|
-
key:
|
|
186
|
+
H.value ? (t(), h(p(ee), { key: 0 }, {
|
|
187
|
+
default: f(({ open: a }) => [
|
|
188
|
+
m(p(ne), null, {
|
|
189
|
+
default: f(() => [
|
|
190
|
+
(t(!0), r(g, null, M(L.value, (c) => (t(), r("li", {
|
|
191
|
+
key: c,
|
|
178
192
|
class: "property-enum-value"
|
|
179
193
|
}, [
|
|
180
|
-
|
|
194
|
+
k("span", be, v(c), 1)
|
|
181
195
|
]))), 128))
|
|
182
196
|
]),
|
|
183
197
|
_: 1
|
|
184
198
|
}),
|
|
185
|
-
m(p(
|
|
186
|
-
default:
|
|
187
|
-
m(p(
|
|
188
|
-
class:
|
|
199
|
+
m(p(ie), { class: "enum-toggle-button" }, {
|
|
200
|
+
default: f(() => [
|
|
201
|
+
m(p(te), {
|
|
202
|
+
class: R(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
|
|
189
203
|
icon: "Add",
|
|
190
204
|
size: "sm"
|
|
191
205
|
}, null, 8, ["class"]),
|
|
192
|
-
B(" " +
|
|
206
|
+
B(" " + v(a ? "Hide values" : "Show all values"), 1)
|
|
193
207
|
]),
|
|
194
208
|
_: 2
|
|
195
209
|
}, 1024)
|
|
@@ -198,40 +212,40 @@ const ce = {
|
|
|
198
212
|
})) : l("", !0)
|
|
199
213
|
]))
|
|
200
214
|
])) : l("", !0),
|
|
201
|
-
|
|
202
|
-
m(
|
|
215
|
+
K.value ? (t(), r("div", ke, [
|
|
216
|
+
m(T, {
|
|
203
217
|
compact: e.compact,
|
|
204
218
|
level: e.level + 1,
|
|
205
219
|
name: e.name,
|
|
206
220
|
noncollapsible: e.noncollapsible,
|
|
207
|
-
value:
|
|
208
|
-
resolvedSchema:
|
|
221
|
+
value: s.value,
|
|
222
|
+
resolvedSchema: s.value,
|
|
209
223
|
discriminatorMapping: e.discriminatorMapping,
|
|
210
224
|
discriminatorPropertyName: e.discriminatorPropertyName,
|
|
211
225
|
schemas: e.schemas,
|
|
212
|
-
"onUpdate:modelValue":
|
|
226
|
+
"onUpdate:modelValue": j
|
|
213
227
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
|
|
214
228
|
])) : l("", !0),
|
|
215
|
-
(
|
|
216
|
-
|
|
217
|
-
m(
|
|
229
|
+
(w = i.value) != null && w.items && typeof i.value.items == "object" ? (t(), r(g, { key: 5 }, [
|
|
230
|
+
J.value ? (t(), r("div", De, [
|
|
231
|
+
m(T, {
|
|
218
232
|
compact: e.compact,
|
|
219
233
|
level: e.level + 1,
|
|
220
234
|
name: e.name,
|
|
221
235
|
noncollapsible: e.noncollapsible,
|
|
222
|
-
value:
|
|
223
|
-
resolvedSchema:
|
|
236
|
+
value: s.value && typeof s.value == "object" && "items" in s.value ? s.value.items : i.value.items,
|
|
237
|
+
resolvedSchema: s.value && typeof s.value == "object" && "items" in s.value ? s.value.items : i.value.items,
|
|
224
238
|
discriminatorMapping: e.discriminatorMapping,
|
|
225
239
|
discriminatorPropertyName: e.discriminatorPropertyName,
|
|
226
240
|
schemas: e.schemas,
|
|
227
|
-
"onUpdate:modelValue":
|
|
241
|
+
"onUpdate:modelValue": j
|
|
228
242
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
|
|
229
243
|
])) : l("", !0)
|
|
230
244
|
], 64)) : l("", !0),
|
|
231
|
-
(t(!0),
|
|
232
|
-
var
|
|
233
|
-
return t(),
|
|
234
|
-
(
|
|
245
|
+
(t(!0), r(g, null, M(p(re), (a) => {
|
|
246
|
+
var c, b, I;
|
|
247
|
+
return t(), r(g, { key: a }, [
|
|
248
|
+
(c = i.value) != null && c[a] && !((b = i.value) != null && b.items && typeof a == "string" && typeof i.value.items == "object" && a in i.value.items) ? (t(), h(q, {
|
|
235
249
|
key: 0,
|
|
236
250
|
compact: e.compact,
|
|
237
251
|
composition: a,
|
|
@@ -240,8 +254,8 @@ const ce = {
|
|
|
240
254
|
name: e.name,
|
|
241
255
|
noncollapsible: e.noncollapsible,
|
|
242
256
|
schemas: e.schemas,
|
|
243
|
-
value:
|
|
244
|
-
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) :
|
|
257
|
+
value: i.value
|
|
258
|
+
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : G(a) ? (t(), h(q, {
|
|
245
259
|
key: 1,
|
|
246
260
|
compact: e.compact,
|
|
247
261
|
composition: a,
|
|
@@ -250,17 +264,17 @@ const ce = {
|
|
|
250
264
|
name: e.name,
|
|
251
265
|
noncollapsible: e.noncollapsible,
|
|
252
266
|
schemas: e.schemas,
|
|
253
|
-
value: (
|
|
267
|
+
value: (I = i.value) == null ? void 0 : I.items
|
|
254
268
|
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : l("", !0)
|
|
255
269
|
], 64);
|
|
256
270
|
}), 128)),
|
|
257
|
-
e.isDiscriminator && e.discriminatorMapping && e.compact ? (t(),
|
|
271
|
+
e.isDiscriminator && e.discriminatorMapping && e.compact ? (t(), h(se, {
|
|
258
272
|
key: 6,
|
|
259
273
|
"discriminator-mapping": e.discriminatorMapping,
|
|
260
|
-
discriminator:
|
|
261
|
-
"onUpdate:modelValue":
|
|
274
|
+
discriminator: Z.value,
|
|
275
|
+
"onUpdate:modelValue": j
|
|
262
276
|
}, null, 8, ["discriminator-mapping", "discriminator"])) : l("", !0),
|
|
263
|
-
m(p(
|
|
277
|
+
m(p(me), { value: i.value }, null, 8, ["value"])
|
|
264
278
|
];
|
|
265
279
|
}),
|
|
266
280
|
_: 1
|
|
@@ -269,5 +283,5 @@ const ce = {
|
|
|
269
283
|
}
|
|
270
284
|
});
|
|
271
285
|
export {
|
|
272
|
-
|
|
286
|
+
Ve as default
|
|
273
287
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAsUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AASjE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAmFF,iBAAS,cAAc;WAyVT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-5af5a0b2"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|