@scalar/api-reference 1.24.12 → 1.24.13
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 +12 -0
- package/dist/browser/standalone.js +9622 -9636
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts +0 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +185 -185
- package/dist/components/Util/Style.vue.d.ts +10 -0
- package/dist/components/Util/Style.vue.d.ts.map +1 -0
- package/dist/components/Util/Style.vue.js +15 -0
- package/dist/components/Util/index.d.ts +2 -0
- package/dist/components/Util/index.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import '@scalar/components/style.css';
|
|
2
2
|
import { type ThemeId } from '@scalar/themes';
|
|
3
|
-
import '@scalar/themes/style.css';
|
|
4
3
|
import type { ReferenceLayoutProps, ReferenceSlotProps } from '../types';
|
|
5
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<Omit<ReferenceLayoutProps, "isDark">>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
5
|
changeTheme: (args_0: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAwjBA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,gBAAgB,CAAA;AA0B7D,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8iBjB,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c4323729"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
1
|
+
import { defineComponent as G, defineAsyncComponent as j, ref as E, onBeforeMount as O, onMounted as K, computed as k, watch as Q, onServerPrefetch as q, useSSRContext as J, getCurrentInstance as X, provide as A, openBlock as v, createElementBlock as S, Fragment as F, createVNode as p, unref as i, withCtx as c, createTextVNode as Z, toDisplayString as _, createElementVNode as f, normalizeClass as x, normalizeStyle as ee, renderSlot as d, normalizeProps as l, guardReactiveProps as u, createCommentVNode as b, withDirectives as oe, vShow as te, createSlots as re } from "vue";
|
|
2
|
+
import { provideUseId as ae } from "@headlessui/vue";
|
|
3
3
|
import "@scalar/components/style.css";
|
|
4
|
-
import { defaultStateFactory as
|
|
5
|
-
import {
|
|
6
|
-
import "@scalar/
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { useSidebar as
|
|
16
|
-
import { GLOBAL_SECURITY_SYMBOL as
|
|
17
|
-
import { useNavState as
|
|
18
|
-
import { scrollToId as
|
|
19
|
-
import { sleep as
|
|
20
|
-
const
|
|
4
|
+
import { defaultStateFactory as ne } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { getThemeStyles as se } from "@scalar/themes";
|
|
6
|
+
import { ScalarToasts as ie } from "@scalar/use-toasts";
|
|
7
|
+
import { useMediaQuery as de, useResizeObserver as le, useDebounceFn as ue } from "@vueuse/core";
|
|
8
|
+
import { NEW_API_MODAL as ce } from "../features.js";
|
|
9
|
+
import pe from "./GettingStarted.vue.js";
|
|
10
|
+
import { downloadSpecBus as fe, downloadSpecFile as me } from "../helpers/specDownloads.js";
|
|
11
|
+
import { useDeprecationWarnings as ge } from "../hooks/useDeprecationWarnings.js";
|
|
12
|
+
import ve from "./Util/Style.vue.js";
|
|
13
|
+
import Se from "./Sidebar/Sidebar.vue.js";
|
|
14
|
+
import he from "./Content/Content.vue.js";
|
|
15
|
+
import { useSidebar as be } from "../hooks/useSidebar.js";
|
|
16
|
+
import { GLOBAL_SECURITY_SYMBOL as we, HIDE_DOWNLOAD_BUTTON_SYMBOL as ye } from "../helpers/provideSymbols.js";
|
|
17
|
+
import { useNavState as Re } from "../hooks/useNavState.js";
|
|
18
|
+
import { scrollToId as $e } from "../helpers/scrollToId.js";
|
|
19
|
+
import { sleep as Ce } from "../helpers/sleep.js";
|
|
20
|
+
const Te = { class: "references-header" }, Ie = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "references-navigation t-doc__sidebar"
|
|
23
|
-
}, Le = { class: "references-navigation-list" },
|
|
23
|
+
}, Le = { class: "references-navigation-list" }, De = { class: "references-editor" }, Ee = { class: "references-editor-textarea" }, Oe = { class: "references-rendered" }, ke = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "references-footer"
|
|
26
|
-
},
|
|
26
|
+
}, Ze = /* @__PURE__ */ G({
|
|
27
27
|
inheritAttrs: !1,
|
|
28
28
|
__name: "ApiReferenceLayout",
|
|
29
29
|
props: {
|
|
@@ -32,8 +32,8 @@ const Ee = { class: "references-header" }, Fe = {
|
|
|
32
32
|
rawSpec: {}
|
|
33
33
|
},
|
|
34
34
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
35
|
+
setup(M) {
|
|
36
|
+
const r = M, P = j(() => ce ? (
|
|
37
37
|
// Empty component
|
|
38
38
|
new Promise((e) => {
|
|
39
39
|
e({ render: () => null });
|
|
@@ -41,190 +41,190 @@ const Ee = { class: "references-header" }, Fe = {
|
|
|
41
41
|
) : (
|
|
42
42
|
// Load component
|
|
43
43
|
import("./ApiClientModalOld.vue.js")
|
|
44
|
-
)), N =
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
)), N = de("(min-width: 1150px)"), w = E("100dvh"), h = E(null);
|
|
45
|
+
le(h, (e) => {
|
|
46
|
+
w.value = e[0].contentRect.height + "px";
|
|
47
47
|
});
|
|
48
48
|
const {
|
|
49
|
-
breadcrumb:
|
|
49
|
+
breadcrumb: U,
|
|
50
50
|
collapsedSidebarItems: g,
|
|
51
|
-
isSidebarOpen:
|
|
52
|
-
setCollapsedSidebarItem:
|
|
53
|
-
hideModels:
|
|
51
|
+
isSidebarOpen: B,
|
|
52
|
+
setCollapsedSidebarItem: y,
|
|
53
|
+
hideModels: z,
|
|
54
54
|
setParsedSpec: V
|
|
55
|
-
} =
|
|
56
|
-
getPathRoutingId:
|
|
57
|
-
getSectionId:
|
|
58
|
-
getTagId:
|
|
59
|
-
hash:
|
|
60
|
-
isIntersectionEnabled:
|
|
61
|
-
pathRouting:
|
|
62
|
-
updateHash:
|
|
63
|
-
} =
|
|
64
|
-
|
|
65
|
-
const
|
|
55
|
+
} = be(), {
|
|
56
|
+
getPathRoutingId: R,
|
|
57
|
+
getSectionId: Y,
|
|
58
|
+
getTagId: H,
|
|
59
|
+
hash: $,
|
|
60
|
+
isIntersectionEnabled: C,
|
|
61
|
+
pathRouting: T,
|
|
62
|
+
updateHash: I
|
|
63
|
+
} = Re();
|
|
64
|
+
T.value = r.configuration.pathRouting, O(() => I());
|
|
65
|
+
const L = async (e) => {
|
|
66
66
|
var o;
|
|
67
|
-
|
|
67
|
+
C.value = !1, I(), e ? $e(e) : (o = h.value) == null || o.scrollTo(0, 0), await Ce(100), C.value = !0;
|
|
68
68
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
O(() => {
|
|
70
|
+
const e = new MutationObserver((o) => {
|
|
71
|
+
const t = o.find(
|
|
72
|
+
(a) => Array.from(a.addedNodes).find(
|
|
73
|
+
(n) => n.id === "headlessui-portal-root"
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
t && (t.addedNodes[0].classList.add(
|
|
77
|
+
"scalar-app"
|
|
78
|
+
), e.disconnect());
|
|
79
|
+
});
|
|
80
|
+
e.observe(document.body, { childList: !0 });
|
|
81
|
+
}), K(() => {
|
|
82
|
+
fe.on(({ specTitle: e }) => {
|
|
83
|
+
me(r.rawSpec, e);
|
|
84
|
+
}), window.onhashchange = () => L(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => T.value && L(R(window.location.pathname));
|
|
73
85
|
});
|
|
74
|
-
const
|
|
75
|
-
() => N.value || !
|
|
76
|
-
),
|
|
86
|
+
const W = k(
|
|
87
|
+
() => N.value || !r.configuration.isEditable
|
|
88
|
+
), D = ue((e) => {
|
|
77
89
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
78
|
-
const
|
|
79
|
-
window.history.replaceState({}, "",
|
|
90
|
+
const t = r.configuration.pathRouting ? r.configuration.pathRouting.basePath : window.location.pathname;
|
|
91
|
+
window.history.replaceState({}, "", t + window.location.search), $.value = "";
|
|
80
92
|
}
|
|
81
|
-
}), s =
|
|
82
|
-
breadcrumb:
|
|
83
|
-
spec:
|
|
93
|
+
}), s = k(() => ({
|
|
94
|
+
breadcrumb: U.value,
|
|
95
|
+
spec: r.parsedSpec
|
|
84
96
|
}));
|
|
85
|
-
return
|
|
86
|
-
var o,
|
|
87
|
-
const e =
|
|
88
|
-
if (e && ((o = e.payload).data || (o.data =
|
|
89
|
-
const a =
|
|
90
|
-
|
|
91
|
-
for (const
|
|
92
|
-
Object.hasOwn(g,
|
|
97
|
+
return Q(() => r.parsedSpec, V, { deep: !0 }), q(() => {
|
|
98
|
+
var o, t;
|
|
99
|
+
const e = J();
|
|
100
|
+
if (e && ((o = e.payload).data || (o.data = ne()), r.configuration.pathRouting)) {
|
|
101
|
+
const a = R(e.url);
|
|
102
|
+
$.value = a, e.payload.data.hash = a;
|
|
103
|
+
for (const n in g)
|
|
104
|
+
Object.hasOwn(g, n) && delete g[n];
|
|
93
105
|
if (a)
|
|
94
|
-
|
|
106
|
+
y(Y(a), !0);
|
|
95
107
|
else {
|
|
96
|
-
const
|
|
97
|
-
|
|
108
|
+
const n = (t = r.parsedSpec.tags) == null ? void 0 : t[0];
|
|
109
|
+
n && y(H(n), !0);
|
|
98
110
|
}
|
|
99
111
|
e.payload.data["useSidebarContent-collapsedSidebarItems"] = g;
|
|
100
112
|
}
|
|
101
|
-
}),
|
|
113
|
+
}), ae(() => {
|
|
102
114
|
var a;
|
|
103
|
-
const e =
|
|
115
|
+
const e = X(), o = "scalar-instance-id";
|
|
104
116
|
if (!e) return o;
|
|
105
|
-
let
|
|
106
|
-
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] =
|
|
107
|
-
}),
|
|
108
|
-
|
|
109
|
-
() =>
|
|
110
|
-
),
|
|
111
|
-
var
|
|
112
|
-
return v(),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
default: i(({ styles: p }) => [
|
|
119
|
-
c(n(ue), null, {
|
|
120
|
-
default: i(({ styles: K }) => {
|
|
121
|
-
var L, k;
|
|
122
|
-
return [
|
|
123
|
-
f("div", {
|
|
124
|
-
ref_key: "documentEl",
|
|
125
|
-
ref: b,
|
|
126
|
-
class: oe(["scalar-api-reference references-layout", [
|
|
127
|
-
{
|
|
128
|
-
"references-editable": e.configuration.isEditable,
|
|
129
|
-
"references-sidebar": e.configuration.showSidebar,
|
|
130
|
-
"references-sidebar-mobile-open": n(Y),
|
|
131
|
-
"references-classic": e.configuration.layout === "classic"
|
|
132
|
-
},
|
|
133
|
-
p,
|
|
134
|
-
K,
|
|
135
|
-
e.$attrs.class
|
|
136
|
-
]]),
|
|
137
|
-
style: te({ "--full-height": y.value }),
|
|
138
|
-
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
139
|
-
(...S) => n(F) && n(F)(...S))
|
|
140
|
-
}, [
|
|
141
|
-
f("div", Ee, [
|
|
142
|
-
l(e.$slots, "header", d(u(s.value)), void 0, !0)
|
|
143
|
-
]),
|
|
144
|
-
e.configuration.showSidebar ? (v(), h("aside", Fe, [
|
|
145
|
-
f("div", Le, [
|
|
146
|
-
c(n(we), { parsedSpec: e.parsedSpec }, {
|
|
147
|
-
"sidebar-start": i(() => [
|
|
148
|
-
l(e.$slots, "sidebar-start", d(u(s.value)), void 0, !0)
|
|
149
|
-
]),
|
|
150
|
-
"sidebar-end": i(() => [
|
|
151
|
-
l(e.$slots, "sidebar-end", d(u(s.value)), void 0, !0)
|
|
152
|
-
]),
|
|
153
|
-
_: 3
|
|
154
|
-
}, 8, ["parsedSpec"])
|
|
155
|
-
])
|
|
156
|
-
])) : w("", !0),
|
|
157
|
-
re(f("div", ke, [
|
|
158
|
-
f("div", Oe, [
|
|
159
|
-
l(e.$slots, "editor", d(u(s.value)), void 0, !0)
|
|
160
|
-
])
|
|
161
|
-
], 512), [
|
|
162
|
-
[ae, e.configuration.isEditable]
|
|
163
|
-
]),
|
|
164
|
-
j.value ? (v(), h(M, { key: 1 }, [
|
|
165
|
-
f("div", Ae, [
|
|
166
|
-
c(n(ye), {
|
|
167
|
-
baseServerURL: e.configuration.baseServerURL,
|
|
168
|
-
layout: e.configuration.layout === "classic" ? "accordion" : "default",
|
|
169
|
-
parsedSpec: e.parsedSpec,
|
|
170
|
-
proxy: e.configuration.proxy,
|
|
171
|
-
servers: e.configuration.servers
|
|
172
|
-
}, ne({
|
|
173
|
-
start: i(() => [
|
|
174
|
-
l(e.$slots, "content-start", d(u(s.value)), void 0, !0)
|
|
175
|
-
]),
|
|
176
|
-
end: i(() => [
|
|
177
|
-
l(e.$slots, "content-end", d(u(s.value)), void 0, !0)
|
|
178
|
-
]),
|
|
179
|
-
_: 2
|
|
180
|
-
}, [
|
|
181
|
-
(L = e.configuration) != null && L.isEditable ? {
|
|
182
|
-
name: "empty-state",
|
|
183
|
-
fn: i(() => {
|
|
184
|
-
var S;
|
|
185
|
-
return [
|
|
186
|
-
c(Se, {
|
|
187
|
-
theme: ((S = e.configuration) == null ? void 0 : S.theme) || "default",
|
|
188
|
-
onChangeTheme: o[0] || (o[0] = (m) => e.$emit("changeTheme", m)),
|
|
189
|
-
onLinkSwaggerFile: o[1] || (o[1] = (m) => e.$emit("linkSwaggerFile")),
|
|
190
|
-
onLoadSwaggerFile: o[2] || (o[2] = (m) => e.$emit("loadSwaggerFile")),
|
|
191
|
-
onUpdateContent: o[3] || (o[3] = (m) => e.$emit("updateContent", m))
|
|
192
|
-
}, null, 8, ["theme"])
|
|
193
|
-
];
|
|
194
|
-
}),
|
|
195
|
-
key: "0"
|
|
196
|
-
} : void 0
|
|
197
|
-
]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
|
|
198
|
-
]),
|
|
199
|
-
e.$slots.footer ? (v(), h("div", Pe, [
|
|
200
|
-
l(e.$slots, "footer", d(u(s.value)), void 0, !0)
|
|
201
|
-
])) : w("", !0)
|
|
202
|
-
], 64)) : w("", !0),
|
|
203
|
-
c(n(B), {
|
|
204
|
-
parsedSpec: e.parsedSpec,
|
|
205
|
-
proxyUrl: (k = e.configuration) == null ? void 0 : k.proxy
|
|
206
|
-
}, {
|
|
207
|
-
"sidebar-start": i(() => [
|
|
208
|
-
l(e.$slots, "sidebar-start", d(u(s.value)), void 0, !0)
|
|
209
|
-
]),
|
|
210
|
-
"sidebar-end": i(() => [
|
|
211
|
-
l(e.$slots, "sidebar-end", d(u(s.value)), void 0, !0)
|
|
212
|
-
]),
|
|
213
|
-
_: 3
|
|
214
|
-
}, 8, ["parsedSpec", "proxyUrl"])
|
|
215
|
-
], 38)
|
|
216
|
-
];
|
|
217
|
-
}),
|
|
218
|
-
_: 2
|
|
219
|
-
}, 1024)
|
|
117
|
+
let t = e.uid;
|
|
118
|
+
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = t) : (a = e.vnode.el) != null && a.getAttribute && (t = e.vnode.el.getAttribute(o)), `${o}-${t}`;
|
|
119
|
+
}), A(we, () => r.parsedSpec.security), A(
|
|
120
|
+
ye,
|
|
121
|
+
() => r.configuration.hideDownloadButton
|
|
122
|
+
), z.value = r.configuration.hideModels ?? !1, ge(r.configuration), (e, o) => {
|
|
123
|
+
var t, a;
|
|
124
|
+
return v(), S(F, null, [
|
|
125
|
+
p(i(ve), null, {
|
|
126
|
+
default: c(() => [
|
|
127
|
+
Z(_(i(se)(e.configuration.theme, {
|
|
128
|
+
fonts: e.configuration.withDefaultFonts
|
|
129
|
+
})), 1)
|
|
220
130
|
]),
|
|
221
|
-
_:
|
|
131
|
+
_: 1
|
|
222
132
|
}),
|
|
223
|
-
|
|
133
|
+
f("div", {
|
|
134
|
+
ref_key: "documentEl",
|
|
135
|
+
ref: h,
|
|
136
|
+
class: x(["scalar-app scalar-api-reference references-layout", [
|
|
137
|
+
{
|
|
138
|
+
"references-editable": e.configuration.isEditable,
|
|
139
|
+
"references-sidebar": e.configuration.showSidebar,
|
|
140
|
+
"references-sidebar-mobile-open": i(B),
|
|
141
|
+
"references-classic": e.configuration.layout === "classic"
|
|
142
|
+
},
|
|
143
|
+
e.$attrs.class
|
|
144
|
+
]]),
|
|
145
|
+
style: ee({ "--full-height": w.value }),
|
|
146
|
+
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
147
|
+
(...n) => i(D) && i(D)(...n))
|
|
148
|
+
}, [
|
|
149
|
+
f("div", Te, [
|
|
150
|
+
d(e.$slots, "header", l(u(s.value)), void 0, !0)
|
|
151
|
+
]),
|
|
152
|
+
e.configuration.showSidebar ? (v(), S("aside", Ie, [
|
|
153
|
+
f("div", Le, [
|
|
154
|
+
p(i(Se), { parsedSpec: e.parsedSpec }, {
|
|
155
|
+
"sidebar-start": c(() => [
|
|
156
|
+
d(e.$slots, "sidebar-start", l(u(s.value)), void 0, !0)
|
|
157
|
+
]),
|
|
158
|
+
"sidebar-end": c(() => [
|
|
159
|
+
d(e.$slots, "sidebar-end", l(u(s.value)), void 0, !0)
|
|
160
|
+
]),
|
|
161
|
+
_: 3
|
|
162
|
+
}, 8, ["parsedSpec"])
|
|
163
|
+
])
|
|
164
|
+
])) : b("", !0),
|
|
165
|
+
oe(f("div", De, [
|
|
166
|
+
f("div", Ee, [
|
|
167
|
+
d(e.$slots, "editor", l(u(s.value)), void 0, !0)
|
|
168
|
+
])
|
|
169
|
+
], 512), [
|
|
170
|
+
[te, e.configuration.isEditable]
|
|
171
|
+
]),
|
|
172
|
+
W.value ? (v(), S(F, { key: 1 }, [
|
|
173
|
+
f("div", Oe, [
|
|
174
|
+
p(i(he), {
|
|
175
|
+
baseServerURL: e.configuration.baseServerURL,
|
|
176
|
+
layout: e.configuration.layout === "classic" ? "accordion" : "default",
|
|
177
|
+
parsedSpec: e.parsedSpec,
|
|
178
|
+
proxy: e.configuration.proxy
|
|
179
|
+
}, re({
|
|
180
|
+
start: c(() => [
|
|
181
|
+
d(e.$slots, "content-start", l(u(s.value)), void 0, !0)
|
|
182
|
+
]),
|
|
183
|
+
end: c(() => [
|
|
184
|
+
d(e.$slots, "content-end", l(u(s.value)), void 0, !0)
|
|
185
|
+
]),
|
|
186
|
+
_: 2
|
|
187
|
+
}, [
|
|
188
|
+
(t = e.configuration) != null && t.isEditable ? {
|
|
189
|
+
name: "empty-state",
|
|
190
|
+
fn: c(() => {
|
|
191
|
+
var n;
|
|
192
|
+
return [
|
|
193
|
+
p(pe, {
|
|
194
|
+
theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
|
|
195
|
+
onChangeTheme: o[0] || (o[0] = (m) => e.$emit("changeTheme", m)),
|
|
196
|
+
onLinkSwaggerFile: o[1] || (o[1] = (m) => e.$emit("linkSwaggerFile")),
|
|
197
|
+
onLoadSwaggerFile: o[2] || (o[2] = (m) => e.$emit("loadSwaggerFile")),
|
|
198
|
+
onUpdateContent: o[3] || (o[3] = (m) => e.$emit("updateContent", m))
|
|
199
|
+
}, null, 8, ["theme"])
|
|
200
|
+
];
|
|
201
|
+
}),
|
|
202
|
+
key: "0"
|
|
203
|
+
} : void 0
|
|
204
|
+
]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy"])
|
|
205
|
+
]),
|
|
206
|
+
e.$slots.footer ? (v(), S("div", ke, [
|
|
207
|
+
d(e.$slots, "footer", l(u(s.value)), void 0, !0)
|
|
208
|
+
])) : b("", !0)
|
|
209
|
+
], 64)) : b("", !0),
|
|
210
|
+
p(i(P), {
|
|
211
|
+
parsedSpec: e.parsedSpec,
|
|
212
|
+
proxyUrl: (a = e.configuration) == null ? void 0 : a.proxy
|
|
213
|
+
}, {
|
|
214
|
+
"sidebar-start": c(() => [
|
|
215
|
+
d(e.$slots, "sidebar-start", l(u(s.value)), void 0, !0)
|
|
216
|
+
]),
|
|
217
|
+
"sidebar-end": c(() => [
|
|
218
|
+
d(e.$slots, "sidebar-end", l(u(s.value)), void 0, !0)
|
|
219
|
+
]),
|
|
220
|
+
_: 3
|
|
221
|
+
}, 8, ["parsedSpec", "proxyUrl"])
|
|
222
|
+
], 38),
|
|
223
|
+
p(i(ie))
|
|
224
224
|
], 64);
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
227
|
});
|
|
228
228
|
export {
|
|
229
|
-
|
|
229
|
+
Ze as default
|
|
230
230
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
+
new (): {
|
|
7
|
+
$slots: S;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=Style.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Style.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Util/Style.vue"],"names":[],"mappings":";;;AA4DA,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { openBlock as t, createBlock as o, resolveDynamicComponent as r, withCtx as n, renderSlot as c } from "vue";
|
|
2
|
+
import l from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const s = {};
|
|
4
|
+
function f(e, a) {
|
|
5
|
+
return t(), o(r("style"), null, {
|
|
6
|
+
default: n(() => [
|
|
7
|
+
c(e.$slots, "default")
|
|
8
|
+
]),
|
|
9
|
+
_: 3
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
const d = /* @__PURE__ */ l(s, [["render", f]]);
|
|
13
|
+
export {
|
|
14
|
+
d as default
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Util/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,aAAa,CAAA"}
|