@scalar/api-reference 1.28.4 → 1.28.6
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 +32 -0
- package/dist/browser/standalone.js +6206 -6147
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- 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 +57 -55
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- 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 +24 -24
- package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +4 -2
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +18 -17
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +4 -4
- package/dist/components/Content/Schema/Schema.vue2.js +79 -67
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +12 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +109 -0
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +26 -31
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -0
- 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 +143 -141
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +83 -99
- package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsList.vue2.js +3 -3
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +41 -36
- 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 +38 -36
- package/dist/components/Content/Tag/TagSection.vue.js +2 -2
- package/dist/components/Content/Tag/TagSection.vue2.js +3 -3
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +1 -1
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.js +2 -2
- package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeaderTag.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +2 -1
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +2 -1
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +2 -4
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +2 -1
- 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 +2 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +3 -3
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +6 -8
- package/dist/features/Operation/Operation.vue.d.ts +2 -0
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +13 -10
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
- package/dist/features/Operation/Webhooks.vue.js +2 -2
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +4 -4
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -0
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +15 -13
- package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -0
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +2 -2
- package/dist/features/Operation/components/ParameterList.vue2.js +14 -12
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -0
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +20 -18
- package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -0
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +20 -18
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useResponses.js +2 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -0
- 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 +29 -24
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -0
- 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 +66 -56
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +2 -1
- package/dist/helpers/index.d.ts +4 -4
- package/dist/helpers/scrollToId.d.ts.map +1 -1
- package/dist/helpers/specHelpers.js +15 -14
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/useMultipleDocuments.d.ts +1 -0
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +2 -1
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +3 -2
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -76
- package/dist/libs/operation.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.d.ts +4 -4
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +10 -9
- package/dist/helpers/getVariableNames.js +0 -7
- package/dist/helpers/hasSecuritySchemes.js +0 -7
- package/dist/helpers/mapFromObject.js +0 -7
- package/dist/helpers/mergeAllObjects.js +0 -7
- package/dist/hooks/useClientStore.js +0 -5
- package/dist/hooks/useRefOnMount.js +0 -10
|
@@ -1,44 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarMarkdown as
|
|
4
|
-
import { formatExample as
|
|
5
|
-
import { optimizeValueForDisplay as
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as X, computed as y, openBlock as l, createElementBlock as o, normalizeClass as U, createBlock as k, createSlots as Y, withCtx as f, createTextVNode as B, toDisplayString as i, createCommentVNode as a, createVNode as p, unref as n, createElementVNode as u, Fragment as c, renderList as h } from "vue";
|
|
2
|
+
import { Disclosure as ee, DisclosurePanel as te, DisclosureButton as le } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as S, ScalarIcon as se } from "@scalar/components";
|
|
4
|
+
import { formatExample as oe } from "./helpers/formatExample.js";
|
|
5
|
+
import { optimizeValueForDisplay as re, discriminators as Z } from "./helpers/optimizeValueForDisplay.js";
|
|
6
|
+
import M from "./Schema.vue.js";
|
|
7
|
+
import $ from "./SchemaDiscriminator.vue.js";
|
|
7
8
|
import ne from "./SchemaPropertyHeading.vue.js";
|
|
8
|
-
const
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "property-description"
|
|
11
|
-
}, ue = {
|
|
9
|
+
const ae = {
|
|
12
10
|
key: 1,
|
|
13
11
|
class: "property-description"
|
|
14
|
-
},
|
|
12
|
+
}, ie = {
|
|
15
13
|
key: 2,
|
|
16
|
-
class: "property-
|
|
17
|
-
},
|
|
14
|
+
class: "property-description"
|
|
15
|
+
}, pe = {
|
|
18
16
|
key: 3,
|
|
19
17
|
class: "property-example custom-scroll"
|
|
20
|
-
},
|
|
18
|
+
}, me = { class: "property-example-value" }, ce = {
|
|
21
19
|
key: 4,
|
|
20
|
+
class: "property-example custom-scroll"
|
|
21
|
+
}, de = { class: "property-example-label" }, ue = {
|
|
22
|
+
key: 5,
|
|
22
23
|
class: "property-enum"
|
|
23
24
|
}, ye = {
|
|
24
25
|
key: 0,
|
|
25
26
|
class: "property-list"
|
|
26
|
-
}, fe = { class: "property-heading" }, he = { class: "property-name" },
|
|
27
|
+
}, fe = { class: "property-heading" }, he = { class: "property-name" }, ve = { class: "property-description" }, ge = {
|
|
27
28
|
key: 1,
|
|
28
29
|
class: "property-enum-values"
|
|
29
|
-
},
|
|
30
|
-
key:
|
|
30
|
+
}, be = {
|
|
31
|
+
key: 6,
|
|
31
32
|
class: "children"
|
|
32
|
-
},
|
|
33
|
+
}, ke = {
|
|
33
34
|
key: 0,
|
|
34
35
|
class: "children"
|
|
35
|
-
},
|
|
36
|
-
key: 0,
|
|
37
|
-
class: "property-rule"
|
|
38
|
-
}, Ee = {
|
|
39
|
-
key: 1,
|
|
40
|
-
class: "property-rule"
|
|
41
|
-
}, Pe = /* @__PURE__ */ Y({
|
|
36
|
+
}, Pe = /* @__PURE__ */ X({
|
|
42
37
|
__name: "SchemaProperty",
|
|
43
38
|
props: {
|
|
44
39
|
value: {},
|
|
@@ -49,10 +44,12 @@ const ie = {
|
|
|
49
44
|
description: {},
|
|
50
45
|
additional: { type: Boolean },
|
|
51
46
|
pattern: { type: Boolean },
|
|
52
|
-
withExamples: { type: Boolean, default: !0 }
|
|
47
|
+
withExamples: { type: Boolean, default: !0 },
|
|
48
|
+
schemas: {},
|
|
49
|
+
hideHeading: { type: Boolean }
|
|
53
50
|
},
|
|
54
|
-
setup(
|
|
55
|
-
const
|
|
51
|
+
setup(G) {
|
|
52
|
+
const J = G, j = {
|
|
56
53
|
integer: {
|
|
57
54
|
_default: "Integer numbers.",
|
|
58
55
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -65,157 +62,162 @@ const ie = {
|
|
|
65
62
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
66
63
|
binary: "binary data, used to describe files"
|
|
67
64
|
}
|
|
68
|
-
}, E = (
|
|
69
|
-
var
|
|
70
|
-
return (
|
|
71
|
-
},
|
|
72
|
-
() => d(
|
|
73
|
-
),
|
|
74
|
-
() => d(
|
|
75
|
-
),
|
|
76
|
-
() => d(
|
|
77
|
-
),
|
|
78
|
-
return (
|
|
79
|
-
var
|
|
80
|
-
return l(),
|
|
81
|
-
class:
|
|
82
|
-
|
|
65
|
+
}, E = (e, s) => s != null && s.properties || s != null && s.additionalProperties || s != null && s.patternProperties || s != null && s.allOf ? null : e || (s == null ? void 0 : s.description) || null, D = (e) => !e || !j[e.type] ? null : j[e.type][e.format || "_default"], d = (e) => {
|
|
66
|
+
var s;
|
|
67
|
+
return (e == null ? void 0 : e.enum) || ((s = e == null ? void 0 : e.items) == null ? void 0 : s.enum) || [];
|
|
68
|
+
}, H = y(
|
|
69
|
+
() => d(t.value).length > 9
|
|
70
|
+
), _ = y(() => H.value ? 5 : 9), K = y(
|
|
71
|
+
() => d(t.value).slice(0, _.value)
|
|
72
|
+
), Q = y(
|
|
73
|
+
() => d(t.value).slice(_.value)
|
|
74
|
+
), t = y(() => re(J.value)), w = Z.find((e) => !t.value || typeof t.value != "object" ? !1 : e in t.value || t.value.items && typeof t.value.items == "object" && e in t.value.items), W = (e, s, v, g, b) => s || v || g || (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) || b;
|
|
75
|
+
return (e, s) => {
|
|
76
|
+
var v, g, b, P, C, q, x, A, F, N, O, V, z, I, L, T;
|
|
77
|
+
return l(), o("li", {
|
|
78
|
+
class: U(["property", [
|
|
79
|
+
(E(e.description, t.value), ""),
|
|
80
|
+
`property--level-${e.level}`,
|
|
83
81
|
{
|
|
84
|
-
"property--compact":
|
|
85
|
-
"property--deprecated": (
|
|
82
|
+
"property--compact": e.compact,
|
|
83
|
+
"property--deprecated": (v = t.value) == null ? void 0 : v.deprecated
|
|
86
84
|
}
|
|
87
85
|
]])
|
|
88
86
|
}, [
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
87
|
+
W(
|
|
88
|
+
t.value,
|
|
89
|
+
e.name,
|
|
90
|
+
e.additional,
|
|
91
|
+
e.pattern,
|
|
92
|
+
e.required
|
|
93
|
+
) ? (l(), k(ne, {
|
|
94
|
+
key: 0,
|
|
95
|
+
additional: e.additional,
|
|
96
|
+
enum: d(t.value).length > 0,
|
|
97
|
+
pattern: e.pattern,
|
|
98
|
+
required: e.required,
|
|
99
|
+
value: t.value
|
|
100
|
+
}, Y({ _: 2 }, [
|
|
101
|
+
e.name ? {
|
|
97
102
|
name: "name",
|
|
98
|
-
fn:
|
|
99
|
-
|
|
103
|
+
fn: f(() => [
|
|
104
|
+
B(i(e.name), 1)
|
|
100
105
|
]),
|
|
101
106
|
key: "0"
|
|
102
107
|
} : void 0,
|
|
103
|
-
(
|
|
108
|
+
(g = t.value) != null && g.example ? {
|
|
104
109
|
name: "example",
|
|
105
|
-
fn:
|
|
106
|
-
|
|
110
|
+
fn: f(() => [
|
|
111
|
+
B(" Example: " + i(t.value.example), 1)
|
|
107
112
|
]),
|
|
108
113
|
key: "1"
|
|
109
114
|
} : void 0
|
|
110
|
-
]), 1032, ["additional", "enum", "pattern", "required", "value"]),
|
|
111
|
-
E(
|
|
112
|
-
|
|
113
|
-
value: E(
|
|
115
|
+
]), 1032, ["additional", "enum", "pattern", "required", "value"])) : a("", !0),
|
|
116
|
+
E(e.description, t.value) ? (l(), o("div", ae, [
|
|
117
|
+
p(n(S), {
|
|
118
|
+
value: E(e.description, t.value)
|
|
114
119
|
}, null, 8, ["value"])
|
|
115
|
-
])) :
|
|
116
|
-
|
|
117
|
-
value:
|
|
120
|
+
])) : D(t.value) ? (l(), o("div", ie, [
|
|
121
|
+
p(n(S), {
|
|
122
|
+
value: D(t.value) || ""
|
|
118
123
|
}, null, 8, ["value"])
|
|
119
|
-
])) :
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
((
|
|
124
|
+
])) : a("", !0),
|
|
125
|
+
e.withExamples && ((b = t.value) != null && b.example || (C = (P = t.value) == null ? void 0 : P.items) != null && C.example) ? (l(), o("div", pe, [
|
|
126
|
+
s[0] || (s[0] = u("span", { class: "property-example-label" }, "Example", -1)),
|
|
127
|
+
u("code", me, i(n(oe)(
|
|
128
|
+
((q = t.value) == null ? void 0 : q.example) || n(w) && ((x = t.value) == null ? void 0 : x.items) && typeof t.value.items == "object" && t.value.items[n(w)]
|
|
124
129
|
)), 1)
|
|
125
|
-
])) :
|
|
126
|
-
(
|
|
127
|
-
|
|
128
|
-
(l(!0),
|
|
129
|
-
key:
|
|
130
|
+
])) : a("", !0),
|
|
131
|
+
(A = t.value) != null && A.examples && typeof t.value.examples == "object" && Object.keys(t.value.examples).length > 0 ? (l(), o("div", ce, [
|
|
132
|
+
u("span", de, i(Object.keys(t.value.examples).length === 1 ? "Example" : "Examples"), 1),
|
|
133
|
+
(l(!0), o(c, null, h(t.value.examples, (r, m) => (l(), o("code", {
|
|
134
|
+
key: m,
|
|
130
135
|
class: "property-example-value"
|
|
131
|
-
},
|
|
132
|
-
])) :
|
|
133
|
-
((
|
|
134
|
-
Array.isArray((
|
|
135
|
-
(l(!0),
|
|
136
|
-
key:
|
|
136
|
+
}, i(r), 1))), 128))
|
|
137
|
+
])) : a("", !0),
|
|
138
|
+
((F = d(t.value)) == null ? void 0 : F.length) > 0 ? (l(), o("div", ue, [
|
|
139
|
+
Array.isArray((N = t.value) == null ? void 0 : N["x-enumDescriptions"]) ? (l(), o("div", ye, [
|
|
140
|
+
(l(!0), o(c, null, h(d(t.value), (r) => (l(), o("div", {
|
|
141
|
+
key: r,
|
|
137
142
|
class: "property"
|
|
138
143
|
}, [
|
|
139
|
-
|
|
140
|
-
|
|
144
|
+
u("div", fe, [
|
|
145
|
+
u("div", he, i(r), 1)
|
|
141
146
|
]),
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
value:
|
|
147
|
+
u("div", ve, [
|
|
148
|
+
p(n(S), {
|
|
149
|
+
value: t.value["x-enumDescriptions"][r]
|
|
145
150
|
}, null, 8, ["value"])
|
|
146
151
|
])
|
|
147
152
|
]))), 128))
|
|
148
|
-
])) : (l(),
|
|
149
|
-
(l(!0),
|
|
150
|
-
key:
|
|
153
|
+
])) : (l(), o("ul", ge, [
|
|
154
|
+
(l(!0), o(c, null, h(K.value, (r) => (l(), o("li", {
|
|
155
|
+
key: r,
|
|
151
156
|
class: "property-enum-value"
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
default:
|
|
155
|
-
|
|
156
|
-
default:
|
|
157
|
-
(l(!0),
|
|
158
|
-
key:
|
|
157
|
+
}, i(r), 1))), 128)),
|
|
158
|
+
H.value ? (l(), k(n(ee), { key: 0 }, {
|
|
159
|
+
default: f(({ open: r }) => [
|
|
160
|
+
p(n(te), null, {
|
|
161
|
+
default: f(() => [
|
|
162
|
+
(l(!0), o(c, null, h(Q.value, (m) => (l(), o("li", {
|
|
163
|
+
key: m,
|
|
159
164
|
class: "property-enum-value"
|
|
160
|
-
},
|
|
165
|
+
}, i(m), 1))), 128))
|
|
161
166
|
]),
|
|
162
167
|
_: 1
|
|
163
168
|
}),
|
|
164
|
-
|
|
165
|
-
default:
|
|
166
|
-
|
|
167
|
-
class:
|
|
169
|
+
p(n(le), { class: "enum-toggle-button" }, {
|
|
170
|
+
default: f(() => [
|
|
171
|
+
p(n(se), {
|
|
172
|
+
class: U(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": r }]),
|
|
168
173
|
icon: "Add",
|
|
169
174
|
size: "sm"
|
|
170
175
|
}, null, 8, ["class"]),
|
|
171
|
-
|
|
176
|
+
B(" " + i(r ? "Hide values" : "Show all values"), 1)
|
|
172
177
|
]),
|
|
173
178
|
_: 2
|
|
174
179
|
}, 1024)
|
|
175
180
|
]),
|
|
176
181
|
_: 1
|
|
177
|
-
})) :
|
|
182
|
+
})) : a("", !0)
|
|
178
183
|
]))
|
|
179
|
-
])) :
|
|
180
|
-
((
|
|
181
|
-
|
|
182
|
-
compact:
|
|
183
|
-
level:
|
|
184
|
-
value:
|
|
184
|
+
])) : a("", !0),
|
|
185
|
+
((O = t.value) == null ? void 0 : O.type) === "object" && ((V = t.value) != null && V.properties || (z = t.value) != null && z.additionalProperties) ? (l(), o("div", be, [
|
|
186
|
+
p(M, {
|
|
187
|
+
compact: e.compact,
|
|
188
|
+
level: e.level + 1,
|
|
189
|
+
value: t.value
|
|
185
190
|
}, null, 8, ["compact", "level", "value"])
|
|
186
|
-
])) :
|
|
187
|
-
(
|
|
188
|
-
["object"].includes((
|
|
189
|
-
|
|
190
|
-
compact:
|
|
191
|
-
level:
|
|
192
|
-
value:
|
|
191
|
+
])) : a("", !0),
|
|
192
|
+
(I = t.value) != null && I.items && typeof t.value.items == "object" && "type" in t.value.items && typeof t.value.items.type == "string" ? (l(), o(c, { key: 7 }, [
|
|
193
|
+
["object"].includes((T = (L = t.value) == null ? void 0 : L.items) == null ? void 0 : T.type) ? (l(), o("div", ke, [
|
|
194
|
+
p(M, {
|
|
195
|
+
compact: e.compact,
|
|
196
|
+
level: e.level + 1,
|
|
197
|
+
value: t.value.items
|
|
193
198
|
}, null, 8, ["compact", "level", "value"])
|
|
194
|
-
])) :
|
|
195
|
-
], 64)) :
|
|
196
|
-
(l(!0),
|
|
197
|
-
var
|
|
198
|
-
return l(),
|
|
199
|
-
(
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
value: y
|
|
217
|
-
}, null, 8, ["compact", "level", "value"]))), 128))
|
|
218
|
-
])) : n("", !0)
|
|
199
|
+
])) : a("", !0)
|
|
200
|
+
], 64)) : a("", !0),
|
|
201
|
+
(l(!0), o(c, null, h(n(Z), (r) => {
|
|
202
|
+
var m, R;
|
|
203
|
+
return l(), o(c, { key: r }, [
|
|
204
|
+
(m = t.value) != null && m[r] ? (l(), k($, {
|
|
205
|
+
key: 0,
|
|
206
|
+
compact: e.compact,
|
|
207
|
+
discriminator: r,
|
|
208
|
+
hideHeading: e.hideHeading,
|
|
209
|
+
level: e.level,
|
|
210
|
+
schemas: e.schemas,
|
|
211
|
+
value: t.value
|
|
212
|
+
}, null, 8, ["compact", "discriminator", "hideHeading", "level", "schemas", "value"])) : (R = t.value) != null && R.items && typeof r == "string" && typeof t.value.items == "object" && r in t.value.items && Array.isArray(t.value.items[r]) && e.level < 3 ? (l(), k($, {
|
|
213
|
+
key: 1,
|
|
214
|
+
compact: e.compact,
|
|
215
|
+
discriminator: r,
|
|
216
|
+
hideHeading: e.hideHeading,
|
|
217
|
+
level: e.level,
|
|
218
|
+
schemas: e.schemas,
|
|
219
|
+
value: t.value.items
|
|
220
|
+
}, null, 8, ["compact", "discriminator", "hideHeading", "level", "schemas", "value"])) : a("", !0)
|
|
219
221
|
], 64);
|
|
220
222
|
}), 128))
|
|
221
223
|
], 2);
|
|
@@ -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":"AAyOA,KAAK,WAAW,GAAG;IACf,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;CAClB,CAAC;AAwBJ,iBAAS,cAAc;WAuTT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cArWN,OAAO;wFA6WpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,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
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7956666a"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|