@scalar/api-reference 1.32.0 → 1.32.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 +83 -0
- package/README.md +1 -1
- package/dist/browser/standalone.js +15732 -15435
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +163 -158
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.js +1 -1
- package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardHeader.vue.js +2 -2
- package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTab.vue.js +3 -3
- package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTabHeader.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Lazy/Loading.vue.d.ts +1 -3
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +92 -91
- 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 +59 -56
- package/dist/components/Content/Schema/RenderString.vue.d.ts +6 -0
- package/dist/components/Content/Schema/RenderString.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/RenderString.vue.js +14 -0
- package/dist/components/Content/Schema/RenderString.vue2.js +4 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
- 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 +76 -75
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +58 -66
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +19 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +125 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +2 -2
- 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 +96 -170
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +18 -0
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +1 -0
- 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 +155 -160
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +6 -0
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-schema-type.js +20 -0
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +20 -46
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- 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 +13 -13
- package/dist/features/Search/SearchButton.vue.d.ts +1 -0
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +36 -34
- package/dist/features/Search/SearchModal.vue.d.ts +1 -0
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +1 -1
- package/dist/features/Search/SearchModal.vue2.js +112 -112
- package/dist/features/Search/useSearchIndex.d.ts +4 -3
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +119 -82
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +2 -2
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +47 -38
- package/dist/features/api-client-modal/useApiClient.d.ts +334 -334
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/base-url/BaseUrl.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
- package/dist/features/example-responses/ExampleResponse.vue2.js +7 -7
- package/dist/features/example-responses/ExampleResponses.vue.d.ts +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue2.js +23 -21
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +2 -2
- package/dist/features/sidebar/components/SidebarHttpBadge.vue2.js +5 -6
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/traverse-schema/helpers/traverse-tags.js +26 -26
- package/dist/features/traverse-schema/index.d.ts +1 -1
- package/dist/features/traverse-schema/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/libs/openapi.d.ts +15 -1
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +66 -47
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +2 -2
- package/package.json +18 -18
- package/dist/hooks/useOperation.d.ts +0 -16
- package/dist/hooks/useOperation.d.ts.map +0 -1
- package/dist/hooks/useOperation.js +0 -27
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAsQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;cAuCjB,WAAW,CAAC,QAAQ;gBAClB,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;cAJN,WAAW,CAAC,QAAQ;gBAClB,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;AApBlB,wBAmUK"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as M, ref as v, watch as x, onMounted as D, withDirectives as E, createElementBlock as m, openBlock as i, normalizeClass as H, createBlock as p, createCommentVNode as b, Fragment as g, renderList as w, unref as l, withCtx as f, createVNode as y, createTextVNode as K, toDisplayString as j, vShow as A } from "vue";
|
|
2
2
|
import { scrollToId as T } from "@scalar/helpers/dom/scroll-to-id";
|
|
3
|
-
import { lazyBus as
|
|
4
|
-
import { useNavState as
|
|
3
|
+
import { lazyBus as F } from "./lazyBus.js";
|
|
4
|
+
import { useNavState as $ } from "../../../hooks/useNavState.js";
|
|
5
5
|
import { getModels as S } from "../../../libs/openapi.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
6
|
+
import q from "../Tag/TagSection.vue.js";
|
|
7
|
+
import G from "../../../features/Operation/Operation.vue.js";
|
|
8
|
+
import J from "../../Section/SectionContainer.vue.js";
|
|
9
|
+
import P from "../../Section/Section.vue.js";
|
|
10
|
+
import Q from "../../Section/SectionContent.vue.js";
|
|
11
|
+
import R from "../../Section/SectionHeader.vue.js";
|
|
12
|
+
import U from "../../Anchor/Anchor.vue.js";
|
|
13
|
+
import X from "../../Section/SectionHeaderTag.vue.js";
|
|
14
|
+
import Y from "../Schema/Schema.vue.js";
|
|
15
|
+
const C = v(!1), ce = /* @__PURE__ */ M({
|
|
16
16
|
__name: "Loading",
|
|
17
17
|
props: {
|
|
18
18
|
document: {},
|
|
@@ -21,111 +21,112 @@ const x = v(!1), he = /* @__PURE__ */ H({
|
|
|
21
21
|
layout: { default: "modern" },
|
|
22
22
|
parsedSpec: {}
|
|
23
23
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
|
|
24
|
+
setup(s) {
|
|
25
|
+
const z = v(!1), k = v([]), I = v([]), { getModelId: W, getSectionId: B, getTagId: N, hash: a, isIntersectionEnabled: h } = $(), L = v(!C.value && s.layout !== "classic" && a.value);
|
|
26
|
+
x(
|
|
27
27
|
() => {
|
|
28
|
-
var
|
|
29
|
-
return (
|
|
28
|
+
var t;
|
|
29
|
+
return (t = s.parsedSpec.tags) == null ? void 0 : t.length;
|
|
30
30
|
},
|
|
31
|
-
(
|
|
32
|
-
var e,
|
|
33
|
-
if (!
|
|
31
|
+
(t) => {
|
|
32
|
+
var e, d;
|
|
33
|
+
if (!a.value || typeof t != "number" || !s.parsedSpec.tags)
|
|
34
34
|
return;
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
37
|
-
let
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
({ id:
|
|
35
|
+
const n = B();
|
|
36
|
+
if (n.startsWith("tag")) {
|
|
37
|
+
let o = 0;
|
|
38
|
+
const c = ((e = s.parsedSpec.tags) == null ? void 0 : e.findIndex((u) => N(u) === n)) ?? 0;
|
|
39
|
+
o = (d = s.parsedSpec.tags[c]) == null ? void 0 : d.operations.findIndex(
|
|
40
|
+
({ id: u }) => u === a.value
|
|
41
41
|
);
|
|
42
|
-
const
|
|
43
|
-
if (!
|
|
42
|
+
const r = s.parsedSpec.tags[c];
|
|
43
|
+
if (!r)
|
|
44
44
|
return;
|
|
45
|
-
|
|
46
|
-
...
|
|
47
|
-
lazyOperations:
|
|
48
|
-
...
|
|
45
|
+
r.name !== "default" && (z.value = n !== a.value && n.startsWith("tag")), k.value.push({
|
|
46
|
+
...r,
|
|
47
|
+
lazyOperations: r.operations.slice(o, o + 2).map((u) => ({
|
|
48
|
+
...u,
|
|
49
49
|
// Prefix the id with lazy- to avoid collisions with the real ids
|
|
50
|
-
id: "lazy-" +
|
|
50
|
+
id: "lazy-" + u.id
|
|
51
51
|
}))
|
|
52
|
-
}),
|
|
53
|
-
} else if (
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
52
|
+
}), a.value.includes("/description/") && (typeof window < "u" && T(a.value), setTimeout(() => h.value = !0, 1e3));
|
|
53
|
+
} else if (a.value.startsWith("model")) {
|
|
54
|
+
const o = Object.keys(S(s.document) ?? {}), [, c] = a.value.toLowerCase().split("/"), r = a.value === "models" ? 0 : o.findIndex((u) => u.toLowerCase() === c);
|
|
55
|
+
if (r === -1)
|
|
56
56
|
return;
|
|
57
|
-
|
|
57
|
+
I.value = o.slice(r, r + 3);
|
|
58
58
|
} else
|
|
59
|
-
typeof window < "u" && T(
|
|
59
|
+
typeof window < "u" && T(a.value), setTimeout(() => h.value = !0, 1e3);
|
|
60
60
|
},
|
|
61
61
|
{ immediate: !0 }
|
|
62
62
|
);
|
|
63
|
-
const
|
|
64
|
-
const
|
|
65
|
-
!
|
|
66
|
-
typeof window < "u" && T(
|
|
67
|
-
|
|
63
|
+
const V = F.on(({ id: t }) => {
|
|
64
|
+
const n = a.value;
|
|
65
|
+
!n || t !== n || (V(), setTimeout(() => {
|
|
66
|
+
typeof window < "u" && T(n), L.value = !1, C.value = !0, setTimeout(() => {
|
|
67
|
+
h.value = !0;
|
|
68
68
|
}, 1e3);
|
|
69
69
|
}, 300));
|
|
70
70
|
});
|
|
71
|
-
return
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
return D(() => {
|
|
72
|
+
a.value || (C.value = !0, setTimeout(() => {
|
|
73
|
+
h.value = !0;
|
|
74
74
|
}, 1e3));
|
|
75
|
-
}), (
|
|
76
|
-
class:
|
|
77
|
-
"references-loading-hidden-tag":
|
|
75
|
+
}), (t, n) => E((i(), m("div", {
|
|
76
|
+
class: H(["references-loading", {
|
|
77
|
+
"references-loading-hidden-tag": z.value,
|
|
78
78
|
"references-loading-top-spacer": k.value.length
|
|
79
79
|
}])
|
|
80
80
|
}, [
|
|
81
|
-
(
|
|
82
|
-
key: e.name +
|
|
81
|
+
(i(!0), m(g, null, w(k.value, (e, d) => (i(), m(g, {
|
|
82
|
+
key: e.name + d
|
|
83
83
|
}, [
|
|
84
|
-
e.operations && e.operations.length > 0 ? (
|
|
84
|
+
e.operations && e.operations.length > 0 ? (i(), p(l(q), {
|
|
85
85
|
key: 0,
|
|
86
|
-
collection:
|
|
87
|
-
spec:
|
|
86
|
+
collection: t.collection,
|
|
87
|
+
spec: t.parsedSpec,
|
|
88
|
+
id: "lazy-{{ getTagId(tag) }}",
|
|
88
89
|
tag: e
|
|
89
90
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
(
|
|
92
|
-
path:
|
|
93
|
-
method:
|
|
94
|
-
isWebhook:
|
|
95
|
-
key:
|
|
96
|
-
id:
|
|
97
|
-
collection:
|
|
98
|
-
layout:
|
|
99
|
-
server:
|
|
100
|
-
}, null, 8, ["path", "method", "isWebhook", "id"]))), 128))
|
|
91
|
+
default: f(() => [
|
|
92
|
+
(i(!0), m(g, null, w(e.lazyOperations, (o) => (i(), p(l(G), {
|
|
93
|
+
path: o.path,
|
|
94
|
+
method: o.httpVerb,
|
|
95
|
+
isWebhook: o.isWebhook,
|
|
96
|
+
key: o.id,
|
|
97
|
+
id: o.id,
|
|
98
|
+
collection: t.collection,
|
|
99
|
+
layout: t.layout,
|
|
100
|
+
server: t.server
|
|
101
|
+
}, null, 8, ["path", "method", "isWebhook", "id", "collection", "layout", "server"]))), 128))
|
|
101
102
|
]),
|
|
102
103
|
_: 2
|
|
103
|
-
}, 1032, ["tag"])) :
|
|
104
|
+
}, 1032, ["collection", "spec", "tag"])) : b("", !0)
|
|
104
105
|
], 64))), 128)),
|
|
105
|
-
|
|
106
|
-
default:
|
|
107
|
-
(
|
|
106
|
+
I.value.length ? (i(), p(l(J), { key: 0 }, {
|
|
107
|
+
default: f(() => [
|
|
108
|
+
(i(!0), m(g, null, w(I.value, (e) => (i(), p(l(P), {
|
|
108
109
|
key: e,
|
|
109
110
|
label: e
|
|
110
111
|
}, {
|
|
111
|
-
default:
|
|
112
|
-
var
|
|
112
|
+
default: f(() => {
|
|
113
|
+
var d;
|
|
113
114
|
return [
|
|
114
|
-
(
|
|
115
|
-
default:
|
|
116
|
-
var
|
|
115
|
+
(d = l(S)(t.document)) != null && d[e] ? (i(), p(l(Q), { key: 0 }, {
|
|
116
|
+
default: f(() => {
|
|
117
|
+
var o;
|
|
117
118
|
return [
|
|
118
|
-
|
|
119
|
-
default:
|
|
120
|
-
|
|
121
|
-
id: "lazy-" +
|
|
119
|
+
y(l(R), null, {
|
|
120
|
+
default: f(() => [
|
|
121
|
+
y(l(U), {
|
|
122
|
+
id: "lazy-" + l(W)({ name: e })
|
|
122
123
|
}, {
|
|
123
|
-
default:
|
|
124
|
-
|
|
125
|
-
default:
|
|
126
|
-
var
|
|
124
|
+
default: f(() => [
|
|
125
|
+
y(l(X), { level: 2 }, {
|
|
126
|
+
default: f(() => {
|
|
127
|
+
var c;
|
|
127
128
|
return [
|
|
128
|
-
|
|
129
|
+
K(j(((c = l(S)(t.document)) == null ? void 0 : c[e]).title ?? e), 1)
|
|
129
130
|
];
|
|
130
131
|
}),
|
|
131
132
|
_: 2
|
|
@@ -136,27 +137,27 @@ const x = v(!1), he = /* @__PURE__ */ H({
|
|
|
136
137
|
]),
|
|
137
138
|
_: 2
|
|
138
139
|
}, 1024),
|
|
139
|
-
|
|
140
|
+
y(l(Y), {
|
|
140
141
|
name: e,
|
|
141
142
|
noncollapsible: "",
|
|
142
|
-
value: (
|
|
143
|
+
value: (o = l(S)(t.document)) == null ? void 0 : o[e]
|
|
143
144
|
}, null, 8, ["name", "value"])
|
|
144
145
|
];
|
|
145
146
|
}),
|
|
146
147
|
_: 2
|
|
147
|
-
}, 1024)) :
|
|
148
|
+
}, 1024)) : b("", !0)
|
|
148
149
|
];
|
|
149
150
|
}),
|
|
150
151
|
_: 2
|
|
151
152
|
}, 1032, ["label"]))), 128))
|
|
152
153
|
]),
|
|
153
154
|
_: 1
|
|
154
|
-
})) :
|
|
155
|
+
})) : b("", !0)
|
|
155
156
|
], 2)), [
|
|
156
|
-
[
|
|
157
|
+
[A, L.value]
|
|
157
158
|
]);
|
|
158
159
|
}
|
|
159
160
|
});
|
|
160
161
|
export {
|
|
161
|
-
|
|
162
|
+
ce as default
|
|
162
163
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AA2HA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAmBxD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AA6MF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Models.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d574132"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,88 +1,91 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
3
|
-
import { useNavState as
|
|
4
|
-
import
|
|
5
|
-
import { useSidebar as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
1
|
+
import { defineComponent as M, useId as k, computed as f, createBlock as m, createCommentVNode as p, openBlock as r, unref as e, withCtx as t, createVNode as s, createElementVNode as N, createTextVNode as g, normalizeClass as I, createElementBlock as C, Fragment as L, renderList as B } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as H } from "@scalar/components";
|
|
3
|
+
import { useNavState as w } from "../../../hooks/useNavState.js";
|
|
4
|
+
import E from "../../ShowMoreButton.vue.js";
|
|
5
|
+
import { useSidebar as O } from "../../../features/sidebar/hooks/useSidebar.js";
|
|
6
|
+
import V from "../../Section/SectionContainer.vue.js";
|
|
7
|
+
import z from "../../Section/Section.vue.js";
|
|
8
|
+
import A from "../../Section/SectionHeader.vue.js";
|
|
9
|
+
import h from "../../Section/SectionHeaderTag.vue.js";
|
|
10
|
+
import S from "../Lazy/Lazy.vue2.js";
|
|
11
|
+
import T from "../../Section/CompactSection.vue.js";
|
|
12
|
+
import j from "../Schema/Schema.vue.js";
|
|
13
|
+
import D from "../Schema/SchemaHeading.vue.js";
|
|
14
|
+
const v = 10, Z = /* @__PURE__ */ M({
|
|
15
15
|
__name: "Models",
|
|
16
16
|
props: {
|
|
17
17
|
schemas: {}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const i =
|
|
21
|
-
() => Object.keys(i.schemas ?? {}).length <=
|
|
22
|
-
),
|
|
23
|
-
const
|
|
24
|
-
return d.value ?
|
|
19
|
+
setup(b) {
|
|
20
|
+
const i = b, n = k(), { collapsedSidebarItems: _ } = O(), { getModelId: a } = w(), d = f(
|
|
21
|
+
() => Object.keys(i.schemas ?? {}).length <= v || _[a()]
|
|
22
|
+
), y = f(() => {
|
|
23
|
+
const l = Object.keys(i.schemas ?? {});
|
|
24
|
+
return d.value ? l : l.slice(0, v);
|
|
25
25
|
});
|
|
26
|
-
return (
|
|
26
|
+
return (l, c) => l.schemas ? (r(), m(e(V), {
|
|
27
27
|
key: 0,
|
|
28
28
|
id: "models"
|
|
29
29
|
}, {
|
|
30
|
-
default:
|
|
31
|
-
|
|
32
|
-
default:
|
|
33
|
-
|
|
34
|
-
default:
|
|
35
|
-
|
|
30
|
+
default: t(() => [
|
|
31
|
+
s(e(z), { "aria-labelledby": e(n) }, {
|
|
32
|
+
default: t(() => [
|
|
33
|
+
s(e(A), null, {
|
|
34
|
+
default: t(() => [
|
|
35
|
+
s(e(h), {
|
|
36
36
|
id: e(n),
|
|
37
37
|
level: 2
|
|
38
38
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
|
|
39
|
+
default: t(() => c[0] || (c[0] = [
|
|
40
|
+
g(" Models ")
|
|
41
41
|
])),
|
|
42
42
|
_: 1
|
|
43
43
|
}, 8, ["id"])
|
|
44
44
|
]),
|
|
45
45
|
_: 1
|
|
46
46
|
}),
|
|
47
|
-
|
|
47
|
+
s(e(S), {
|
|
48
48
|
id: "models",
|
|
49
49
|
isLazy: !1
|
|
50
50
|
}),
|
|
51
|
-
|
|
52
|
-
class:
|
|
51
|
+
N("div", {
|
|
52
|
+
class: I(["models-list", { "models-list-truncated": !d.value }])
|
|
53
53
|
}, [
|
|
54
|
-
(r(!0),
|
|
55
|
-
id: e(a)({ name:
|
|
56
|
-
key:
|
|
54
|
+
(r(!0), C(L, null, B(y.value, (o) => (r(), m(e(S), {
|
|
55
|
+
id: e(a)({ name: o }),
|
|
56
|
+
key: o,
|
|
57
57
|
isLazy: ""
|
|
58
58
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
|
|
61
|
-
id: e(a)({ name:
|
|
59
|
+
default: t(() => [
|
|
60
|
+
s(e(T), {
|
|
61
|
+
id: e(a)({ name: o }),
|
|
62
62
|
class: "models-list-item",
|
|
63
|
-
label:
|
|
63
|
+
label: o
|
|
64
64
|
}, {
|
|
65
|
-
heading:
|
|
66
|
-
|
|
67
|
-
default:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
65
|
+
heading: t(() => [
|
|
66
|
+
s(e(h), { level: 3 }, {
|
|
67
|
+
default: t(() => {
|
|
68
|
+
var u;
|
|
69
|
+
return [
|
|
70
|
+
s(e(D), {
|
|
71
|
+
name: l.schemas[o].title ?? ((u = l.schemas[o].xml) == null ? void 0 : u.name) ?? o,
|
|
72
|
+
value: l.schemas[o]
|
|
73
|
+
}, null, 8, ["name", "value"])
|
|
74
|
+
];
|
|
75
|
+
}),
|
|
73
76
|
_: 2
|
|
74
77
|
}, 1024)
|
|
75
78
|
]),
|
|
76
|
-
default:
|
|
77
|
-
|
|
78
|
-
default:
|
|
79
|
-
|
|
79
|
+
default: t(() => [
|
|
80
|
+
s(e(H), null, {
|
|
81
|
+
default: t(() => [
|
|
82
|
+
s(e(j), {
|
|
80
83
|
noncollapsible: "",
|
|
81
84
|
hideHeading: !0,
|
|
82
85
|
hideModelNames: !0,
|
|
83
|
-
schemas:
|
|
86
|
+
schemas: l.schemas,
|
|
84
87
|
level: 1,
|
|
85
|
-
value:
|
|
88
|
+
value: l.schemas[o]
|
|
86
89
|
}, null, 8, ["schemas", "value"])
|
|
87
90
|
]),
|
|
88
91
|
_: 2
|
|
@@ -94,7 +97,7 @@ const S = 10, U = /* @__PURE__ */ y({
|
|
|
94
97
|
_: 2
|
|
95
98
|
}, 1032, ["id"]))), 128))
|
|
96
99
|
], 2),
|
|
97
|
-
d.value ?
|
|
100
|
+
d.value ? p("", !0) : (r(), m(E, {
|
|
98
101
|
key: 0,
|
|
99
102
|
id: e(a)(),
|
|
100
103
|
class: "show-more-models"
|
|
@@ -104,9 +107,9 @@ const S = 10, U = /* @__PURE__ */ y({
|
|
|
104
107
|
}, 8, ["aria-labelledby"])
|
|
105
108
|
]),
|
|
106
109
|
_: 1
|
|
107
|
-
})) :
|
|
110
|
+
})) : p("", !0);
|
|
108
111
|
}
|
|
109
112
|
});
|
|
110
113
|
export {
|
|
111
|
-
|
|
114
|
+
Z as default
|
|
112
115
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: any;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=RenderString.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderString.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/RenderString.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,GAAG,CAAA;CACX,CAAC;;AAwEF,wBAMG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineComponent as t, computed as u, toDisplayString as r } from "vue";
|
|
2
|
+
const f = /* @__PURE__ */ t({
|
|
3
|
+
__name: "RenderString",
|
|
4
|
+
props: {
|
|
5
|
+
value: {}
|
|
6
|
+
},
|
|
7
|
+
setup(e) {
|
|
8
|
+
const n = u(() => e.value === "" ? "''" : e.value === null ? "null" : e.value === void 0 ? "undefined" : e.value);
|
|
9
|
+
return (a, l) => r(n.value);
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
f as default
|
|
14
|
+
};
|
|
@@ -2,7 +2,7 @@ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
|
2
2
|
import type { Schemas } from '../../../features/Operation/types/schemas';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
value?: OpenAPIV3_1.OperationObject | OpenAPIV3_1.SchemaObject | OpenAPIV3_1.ArraySchemaObject | OpenAPIV3_1.NonArraySchemaObject | OpenAPIV3_1.SchemaObject | OpenAPIV3_1.ArraySchemaObject | OpenAPIV3_1.NonArraySchemaObject;
|
|
5
|
-
/** Track how deep we
|
|
5
|
+
/** Track how deep we've gone */
|
|
6
6
|
level?: number;
|
|
7
7
|
name?: string;
|
|
8
8
|
/** A tighter layout with less borders and without a heading */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AA+fA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAQjE,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,WAAW,CAAC,eAAe,GAC3B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,GAChC,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4BAA4B;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,kCAAkC;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;;;;;;WAtBQ,MAAM;oBAMG,OAAO;oBAKP,OAAO;;AA0mB5B,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Schema.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e2ccf7a4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|