@scalar/api-reference 1.31.7 → 1.31.9
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 +55 -0
- package/dist/browser/standalone.js +18613 -18470
- 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 +84 -74
- 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 +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +117 -112
- 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/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 +17 -17
- 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 s, inject as Y, createBlock as y, openBlock as t, resolveDynamicComponent as _, normalizeClass as w, withCtx as h, createCommentVNode as l, createElementBlock as r, createVNode as m, createSlots as x, createTextVNode as j, toDisplayString as f, unref as p, Fragment as g, renderList as P, createElementVNode as b } from "vue";
|
|
2
|
+
import { Disclosure as ee, DisclosurePanel as ne, DisclosureButton as ie } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as B, 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 q from "./Schema.vue.js";
|
|
7
|
+
import F 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" }, ge = {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "property-enum-values"
|
|
26
|
-
},
|
|
26
|
+
}, ve = { class: "property-enum-value-label" }, be = { class: "property-enum-value-label" }, ke = {
|
|
27
27
|
key: 4,
|
|
28
28
|
class: "children"
|
|
29
|
-
},
|
|
29
|
+
}, Ne = {
|
|
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(U, { emit: $ }) {
|
|
55
|
+
const k = U, z = $, O = {
|
|
56
56
|
integer: {
|
|
57
57
|
_default: "Integer numbers.",
|
|
58
58
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -65,131 +65,136 @@ 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) || ((
|
|
68
|
+
}, S = (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 || !O[e.type] ? null : O[e.type][e.format || "_default"], d = (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
71
|
}, E = s(
|
|
72
|
-
() =>
|
|
73
|
-
), H = s(() => E.value ? 5 : 9),
|
|
74
|
-
() =>
|
|
75
|
-
),
|
|
76
|
-
() =>
|
|
77
|
-
),
|
|
72
|
+
() => d(i.value).length > 9
|
|
73
|
+
), H = s(() => E.value ? 5 : 9), L = s(
|
|
74
|
+
() => d(i.value).slice(0, H.value)
|
|
75
|
+
), Z = s(
|
|
76
|
+
() => d(i.value).slice(H.value)
|
|
77
|
+
), i = s(() => ae(k.value)), c = Y(oe, null), o = s(() => {
|
|
78
78
|
var e;
|
|
79
|
-
return (e =
|
|
80
|
-
}),
|
|
79
|
+
return k.level > 0 ? i.value : (e = c == null ? void 0 : c.value) != null && e.mergedSchema ? c.value.mergedSchema : i.value;
|
|
80
|
+
}), X = s(() => {
|
|
81
81
|
var e;
|
|
82
|
-
return ((e =
|
|
83
|
-
}),
|
|
84
|
-
|
|
82
|
+
return ((e = c == null ? void 0 : c.value) == null ? void 0 : e.selectedType) || (k.discriminatorMapping ? Object.keys(k.discriminatorMapping)[0] : "");
|
|
83
|
+
}), G = (e, n, u, N, M) => n || u || 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) || M, D = (e) => {
|
|
84
|
+
z("update:modelValue", e);
|
|
85
85
|
}, V = s(() => {
|
|
86
|
-
const e =
|
|
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
|
+
}), J = (e) => {
|
|
92
|
+
const n = i.value;
|
|
93
|
+
return !(n != null && n.items) || typeof n.items != "object" || !(e in n.items) ? !1 : !V.value;
|
|
94
|
+
}, K = s(() => V.value), Q = s(() => {
|
|
95
|
+
if (!i.value)
|
|
96
|
+
return !1;
|
|
97
|
+
const e = i.value, n = e.type === "object" || Array.isArray(e.type) && e.type.includes("object"), u = e.properties || e.additionalProperties;
|
|
98
|
+
return n && u;
|
|
99
|
+
});
|
|
100
|
+
return (e, n) => {
|
|
101
|
+
var u;
|
|
102
|
+
return t(), y(_(e.is ?? "li"), {
|
|
103
|
+
class: w(["property", [
|
|
104
|
+
(S(e.description, i.value), ""),
|
|
100
105
|
`property--level-${e.level}`,
|
|
101
106
|
{
|
|
102
107
|
"property--compact": e.compact,
|
|
103
|
-
"property--deprecated": (
|
|
108
|
+
"property--deprecated": (u = i.value) == null ? void 0 : u.deprecated
|
|
104
109
|
}
|
|
105
110
|
]])
|
|
106
111
|
}, {
|
|
107
|
-
default:
|
|
108
|
-
var
|
|
112
|
+
default: h(() => {
|
|
113
|
+
var N, M, A, I;
|
|
109
114
|
return [
|
|
110
|
-
|
|
111
|
-
|
|
115
|
+
G(
|
|
116
|
+
i.value,
|
|
112
117
|
e.name,
|
|
113
118
|
e.additional,
|
|
114
119
|
e.pattern,
|
|
115
120
|
e.required
|
|
116
|
-
) ? (t(),
|
|
121
|
+
) ? (t(), y(le, {
|
|
117
122
|
key: 0,
|
|
118
123
|
additional: e.additional,
|
|
119
|
-
enum:
|
|
124
|
+
enum: d(i.value).length > 0,
|
|
120
125
|
pattern: e.pattern,
|
|
121
126
|
required: e.required,
|
|
122
|
-
value:
|
|
127
|
+
value: i.value,
|
|
123
128
|
schemas: e.schemas,
|
|
124
129
|
hideModelNames: e.hideModelNames
|
|
125
|
-
},
|
|
130
|
+
}, x({ _: 2 }, [
|
|
126
131
|
e.name ? {
|
|
127
132
|
name: "name",
|
|
128
|
-
fn:
|
|
129
|
-
|
|
133
|
+
fn: h(() => [
|
|
134
|
+
j(f(e.name), 1)
|
|
130
135
|
]),
|
|
131
136
|
key: "0"
|
|
132
137
|
} : void 0,
|
|
133
|
-
(
|
|
138
|
+
(N = i.value) != null && N.example ? {
|
|
134
139
|
name: "example",
|
|
135
|
-
fn:
|
|
136
|
-
|
|
140
|
+
fn: h(() => [
|
|
141
|
+
j(" Example: " + f(i.value.example), 1)
|
|
137
142
|
]),
|
|
138
143
|
key: "1"
|
|
139
144
|
} : void 0
|
|
140
145
|
]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas", "hideModelNames"])) : l("", !0),
|
|
141
|
-
|
|
142
|
-
m(p(
|
|
143
|
-
value:
|
|
146
|
+
S(e.description, i.value) ? (t(), r("div", pe, [
|
|
147
|
+
m(p(B), {
|
|
148
|
+
value: S(e.description, i.value)
|
|
144
149
|
}, null, 8, ["value"])
|
|
145
|
-
])) : C(
|
|
146
|
-
m(p(
|
|
147
|
-
value: C(
|
|
150
|
+
])) : C(i.value) ? (t(), r("div", ce, [
|
|
151
|
+
m(p(B), {
|
|
152
|
+
value: C(i.value) || ""
|
|
148
153
|
}, null, 8, ["value"])
|
|
149
154
|
])) : l("", !0),
|
|
150
|
-
((
|
|
151
|
-
Array.isArray((
|
|
152
|
-
(t(!0),
|
|
155
|
+
((M = d(i.value)) == null ? void 0 : M.length) > 0 && !e.isDiscriminator ? (t(), r("div", de, [
|
|
156
|
+
Array.isArray((A = i.value) == null ? void 0 : A["x-enumDescriptions"]) ? (t(), r("div", ue, [
|
|
157
|
+
(t(!0), r(g, null, P(d(i.value), (a) => (t(), r("div", {
|
|
153
158
|
key: a,
|
|
154
159
|
class: "property"
|
|
155
160
|
}, [
|
|
156
|
-
|
|
157
|
-
|
|
161
|
+
b("div", ye, [
|
|
162
|
+
b("div", he, f(a), 1)
|
|
158
163
|
]),
|
|
159
|
-
|
|
160
|
-
m(p(
|
|
161
|
-
value:
|
|
164
|
+
b("div", fe, [
|
|
165
|
+
m(p(B), {
|
|
166
|
+
value: i.value["x-enumDescriptions"][a]
|
|
162
167
|
}, null, 8, ["value"])
|
|
163
168
|
])
|
|
164
169
|
]))), 128))
|
|
165
|
-
])) : (t(),
|
|
166
|
-
(t(!0),
|
|
170
|
+
])) : (t(), r("ul", ge, [
|
|
171
|
+
(t(!0), r(g, null, P(L.value, (a) => (t(), r("li", {
|
|
167
172
|
key: a,
|
|
168
173
|
class: "property-enum-value"
|
|
169
174
|
}, [
|
|
170
|
-
|
|
175
|
+
b("span", ve, f(a), 1)
|
|
171
176
|
]))), 128)),
|
|
172
|
-
E.value ? (t(),
|
|
173
|
-
default:
|
|
174
|
-
m(p(
|
|
175
|
-
default:
|
|
176
|
-
(t(!0),
|
|
177
|
-
key:
|
|
177
|
+
E.value ? (t(), y(p(ee), { key: 0 }, {
|
|
178
|
+
default: h(({ open: a }) => [
|
|
179
|
+
m(p(ne), null, {
|
|
180
|
+
default: h(() => [
|
|
181
|
+
(t(!0), r(g, null, P(Z.value, (v) => (t(), r("li", {
|
|
182
|
+
key: v,
|
|
178
183
|
class: "property-enum-value"
|
|
179
184
|
}, [
|
|
180
|
-
|
|
185
|
+
b("span", be, f(v), 1)
|
|
181
186
|
]))), 128))
|
|
182
187
|
]),
|
|
183
188
|
_: 1
|
|
184
189
|
}),
|
|
185
|
-
m(p(
|
|
186
|
-
default:
|
|
187
|
-
m(p(
|
|
188
|
-
class:
|
|
190
|
+
m(p(ie), { class: "enum-toggle-button" }, {
|
|
191
|
+
default: h(() => [
|
|
192
|
+
m(p(te), {
|
|
193
|
+
class: w(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
|
|
189
194
|
icon: "Add",
|
|
190
195
|
size: "sm"
|
|
191
196
|
}, null, 8, ["class"]),
|
|
192
|
-
|
|
197
|
+
j(" " + f(a ? "Hide values" : "Show all values"), 1)
|
|
193
198
|
]),
|
|
194
199
|
_: 2
|
|
195
200
|
}, 1024)
|
|
@@ -198,40 +203,40 @@ const ce = {
|
|
|
198
203
|
})) : l("", !0)
|
|
199
204
|
]))
|
|
200
205
|
])) : l("", !0),
|
|
201
|
-
|
|
202
|
-
m(
|
|
206
|
+
Q.value ? (t(), r("div", ke, [
|
|
207
|
+
m(q, {
|
|
203
208
|
compact: e.compact,
|
|
204
209
|
level: e.level + 1,
|
|
205
210
|
name: e.name,
|
|
206
211
|
noncollapsible: e.noncollapsible,
|
|
207
|
-
value:
|
|
208
|
-
resolvedSchema:
|
|
212
|
+
value: o.value,
|
|
213
|
+
resolvedSchema: o.value,
|
|
209
214
|
discriminatorMapping: e.discriminatorMapping,
|
|
210
215
|
discriminatorPropertyName: e.discriminatorPropertyName,
|
|
211
216
|
schemas: e.schemas,
|
|
212
|
-
"onUpdate:modelValue":
|
|
217
|
+
"onUpdate:modelValue": D
|
|
213
218
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
|
|
214
219
|
])) : l("", !0),
|
|
215
|
-
(
|
|
216
|
-
|
|
217
|
-
m(
|
|
220
|
+
(I = i.value) != null && I.items && typeof i.value.items == "object" ? (t(), r(g, { key: 5 }, [
|
|
221
|
+
K.value ? (t(), r("div", Ne, [
|
|
222
|
+
m(q, {
|
|
218
223
|
compact: e.compact,
|
|
219
224
|
level: e.level + 1,
|
|
220
225
|
name: e.name,
|
|
221
226
|
noncollapsible: e.noncollapsible,
|
|
222
|
-
value:
|
|
223
|
-
resolvedSchema:
|
|
227
|
+
value: o.value && typeof o.value == "object" && "items" in o.value ? o.value.items : i.value.items,
|
|
228
|
+
resolvedSchema: o.value && typeof o.value == "object" && "items" in o.value ? o.value.items : i.value.items,
|
|
224
229
|
discriminatorMapping: e.discriminatorMapping,
|
|
225
230
|
discriminatorPropertyName: e.discriminatorPropertyName,
|
|
226
231
|
schemas: e.schemas,
|
|
227
|
-
"onUpdate:modelValue":
|
|
232
|
+
"onUpdate:modelValue": D
|
|
228
233
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
|
|
229
234
|
])) : l("", !0)
|
|
230
235
|
], 64)) : l("", !0),
|
|
231
|
-
(t(!0),
|
|
232
|
-
var
|
|
233
|
-
return t(),
|
|
234
|
-
(
|
|
236
|
+
(t(!0), r(g, null, P(p(re), (a) => {
|
|
237
|
+
var v, R, T;
|
|
238
|
+
return t(), r(g, { key: a }, [
|
|
239
|
+
(v = i.value) != null && v[a] && !((R = i.value) != null && R.items && typeof a == "string" && typeof i.value.items == "object" && a in i.value.items) ? (t(), y(F, {
|
|
235
240
|
key: 0,
|
|
236
241
|
compact: e.compact,
|
|
237
242
|
composition: a,
|
|
@@ -240,8 +245,8 @@ const ce = {
|
|
|
240
245
|
name: e.name,
|
|
241
246
|
noncollapsible: e.noncollapsible,
|
|
242
247
|
schemas: e.schemas,
|
|
243
|
-
value:
|
|
244
|
-
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) :
|
|
248
|
+
value: i.value
|
|
249
|
+
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : J(a) ? (t(), y(F, {
|
|
245
250
|
key: 1,
|
|
246
251
|
compact: e.compact,
|
|
247
252
|
composition: a,
|
|
@@ -250,17 +255,17 @@ const ce = {
|
|
|
250
255
|
name: e.name,
|
|
251
256
|
noncollapsible: e.noncollapsible,
|
|
252
257
|
schemas: e.schemas,
|
|
253
|
-
value: (
|
|
258
|
+
value: (T = i.value) == null ? void 0 : T.items
|
|
254
259
|
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : l("", !0)
|
|
255
260
|
], 64);
|
|
256
261
|
}), 128)),
|
|
257
|
-
e.isDiscriminator && e.discriminatorMapping && e.compact ? (t(),
|
|
262
|
+
e.isDiscriminator && e.discriminatorMapping && e.compact ? (t(), y(se, {
|
|
258
263
|
key: 6,
|
|
259
264
|
"discriminator-mapping": e.discriminatorMapping,
|
|
260
|
-
discriminator:
|
|
261
|
-
"onUpdate:modelValue":
|
|
265
|
+
discriminator: X.value,
|
|
266
|
+
"onUpdate:modelValue": D
|
|
262
267
|
}, null, 8, ["discriminator-mapping", "discriminator"])) : l("", !0),
|
|
263
|
-
m(p(
|
|
268
|
+
m(p(me), { value: i.value }, null, 8, ["value"])
|
|
264
269
|
];
|
|
265
270
|
}),
|
|
266
271
|
_: 1
|
|
@@ -269,5 +274,5 @@ const ce = {
|
|
|
269
274
|
}
|
|
270
275
|
});
|
|
271
276
|
export {
|
|
272
|
-
|
|
277
|
+
Ve as default
|
|
273
278
|
};
|
|
@@ -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
|
};
|