@scalar/api-reference 1.28.7 → 1.28.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 +45 -0
- package/dist/browser/standalone.js +13967 -13923
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts +2 -2
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +1 -1
- package/dist/components/GettingStarted.vue2.js +25 -25
- 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 +89 -76
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +1 -1
- package/dist/components/SingleApiReference.vue.d.ts +1 -1
- package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +1334 -990
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +46 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +83 -74
- package/dist/helpers/freeze-element.d.ts +11 -0
- package/dist/helpers/freeze-element.d.ts.map +1 -0
- package/dist/helpers/freeze-element.js +20 -0
- package/dist/helpers/get-request.d.ts +4 -4
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.d.ts +26 -23
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.js +66 -50
- package/dist/hooks/useReactiveSpec.d.ts +220 -3
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.js +30 -28
- package/dist/index.js +1 -1
- package/dist/standalone/lib/html-api.d.ts +5 -5
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AnyApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
/**
|
|
4
4
|
* Configuration for the API reference.
|
|
5
5
|
* Can be a single configuration or an array of configurations for multiple documents.
|
|
6
6
|
*/
|
|
7
|
-
configuration?:
|
|
7
|
+
configuration?: AnyApiReferenceConfiguration;
|
|
8
8
|
};
|
|
9
9
|
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>;
|
|
10
10
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAU/E,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;;AA4FF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./GettingStarted.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0f473adb"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, openBlock as o, createElementBlock as d, createElementVNode as e, createStaticVNode as r, createVNode as i, unref as l, withCtx as n, createTextVNode as p, Fragment as u, renderList as w, normalizeClass as y, toDisplayString as A } from "vue";
|
|
2
2
|
import { ScalarButton as c } from "@scalar/components";
|
|
3
3
|
import { themeLabels as f } from "@scalar/themes";
|
|
4
|
-
const
|
|
4
|
+
const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, E = ["onClick"], P = /* @__PURE__ */ b({
|
|
5
5
|
__name: "GettingStarted",
|
|
6
6
|
props: {
|
|
7
7
|
theme: {}
|
|
8
8
|
},
|
|
9
9
|
emits: ["changeTheme", "loadSwaggerFile", "linkSwaggerFile", "updateContent"],
|
|
10
|
-
setup(
|
|
11
|
-
const g = v,
|
|
10
|
+
setup(F, { emit: v }) {
|
|
11
|
+
const g = v, m = [
|
|
12
12
|
"default",
|
|
13
13
|
"alternate",
|
|
14
14
|
"moon",
|
|
@@ -20,49 +20,49 @@ const A = { class: "start custom-scroll" }, x = { class: "start-copy" }, k = { c
|
|
|
20
20
|
"mars",
|
|
21
21
|
"deepSpace"
|
|
22
22
|
];
|
|
23
|
-
async function
|
|
23
|
+
async function h() {
|
|
24
24
|
const s = await fetch(
|
|
25
25
|
"https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml"
|
|
26
26
|
);
|
|
27
27
|
g("updateContent", await s.text());
|
|
28
28
|
}
|
|
29
|
-
return (s,
|
|
30
|
-
e("div",
|
|
31
|
-
|
|
32
|
-
e("div",
|
|
33
|
-
|
|
29
|
+
return (s, a) => (o(), d("div", C, [
|
|
30
|
+
e("div", S, [
|
|
31
|
+
a[3] || (a[3] = r('<div class="start-logo" data-v-0f473adb><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-0f473adb></path></svg></div><h1 class="start-h1" data-v-0f473adb>Swagger Editor</h1><p class="start-p" data-v-0f473adb> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
|
|
32
|
+
e("div", x, [
|
|
33
|
+
i(l(c), {
|
|
34
34
|
fullWidth: "",
|
|
35
|
-
onClick:
|
|
35
|
+
onClick: h
|
|
36
36
|
}, {
|
|
37
|
-
default:
|
|
37
|
+
default: n(() => a[1] || (a[1] = [
|
|
38
38
|
p(" Show Example ")
|
|
39
39
|
])),
|
|
40
40
|
_: 1
|
|
41
41
|
}),
|
|
42
|
-
|
|
42
|
+
i(l(c), {
|
|
43
43
|
fullWidth: "",
|
|
44
44
|
variant: "outlined",
|
|
45
|
-
onClick:
|
|
45
|
+
onClick: a[0] || (a[0] = (t) => s.$emit("loadSwaggerFile"))
|
|
46
46
|
}, {
|
|
47
|
-
default:
|
|
47
|
+
default: n(() => a[2] || (a[2] = [
|
|
48
48
|
p(" Upload File ")
|
|
49
49
|
])),
|
|
50
50
|
_: 1
|
|
51
51
|
})
|
|
52
52
|
])
|
|
53
53
|
]),
|
|
54
|
-
e("div",
|
|
55
|
-
|
|
56
|
-
e("div",
|
|
57
|
-
|
|
58
|
-
(o(),
|
|
59
|
-
key:
|
|
60
|
-
class:
|
|
61
|
-
onClick: (
|
|
62
|
-
},
|
|
54
|
+
e("div", k, [
|
|
55
|
+
a[5] || (a[5] = r('<div class="start-section start-section-integrations" data-v-0f473adb><div class="start-h2" data-v-0f473adb>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-0f473adb><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-0f473adb></path></svg><span data-v-0f473adb>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-0f473adb><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g data-v-0f473adb><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-0f473adb></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0f473adb></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0f473adb></path></g></svg><span data-v-0f473adb>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-0f473adb><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g fill="currentColor" fill-rule="nonzero" data-v-0f473adb><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-0f473adb></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-0f473adb></polygon></g></svg><span data-v-0f473adb>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-0f473adb><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g fill="none" fill-rule="evenodd" data-v-0f473adb><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-0f473adb></circle><g stroke="currentColor" data-v-0f473adb><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-0f473adb></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-0f473adb></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-0f473adb></ellipse></g></g></svg><span data-v-0f473adb>React</span></a></div>', 1)),
|
|
56
|
+
e("div", Z, [
|
|
57
|
+
a[4] || (a[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
|
|
58
|
+
(o(), d(u, null, w(m, (t) => e("div", {
|
|
59
|
+
key: t,
|
|
60
|
+
class: y(["start-item", { "start-item-active": t === s.theme }]),
|
|
61
|
+
onClick: (B) => s.$emit("changeTheme", { id: t, label: l(f)[t] })
|
|
62
|
+
}, A(l(f)[t]), 11, E)), 64))
|
|
63
63
|
])
|
|
64
64
|
]),
|
|
65
|
-
|
|
65
|
+
a[6] || (a[6] = r('<p class="start-h1" data-v-0f473adb>Features</p><ul class="start-ul" data-v-0f473adb><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
|
|
66
66
|
]));
|
|
67
67
|
}
|
|
68
68
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAmQA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AAMxE,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;CACjB,GAAG,YAAY,CAAC;AA+FnB,iBAAS,cAAc;WA4NT,OAAO,IAA6B;;iCAVb,GAAG;+BACJ,GAAG;;;;;;EActC;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 "./Sidebar.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-1c7b654c"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useNavState as
|
|
5
|
-
import { useSidebar as
|
|
1
|
+
import { defineComponent as F, ref as E, watch as I, onMounted as N, onUnmounted as L, openBlock as r, createElementBlock as d, renderSlot as w, createElementVNode as V, createVNode as G, withCtx as h, Fragment as o, renderList as y, unref as n, toDisplayString as M, createBlock as f, createCommentVNode as v } from "vue";
|
|
2
|
+
import S from "./SidebarElement.vue.js";
|
|
3
|
+
import g from "./SidebarGroup.vue.js";
|
|
4
|
+
import { useNavState as D } from "../../hooks/useNavState.js";
|
|
5
|
+
import { useSidebar as H } from "../../hooks/useSidebar.js";
|
|
6
6
|
import { sleep as C } from "../../helpers/sleep.js";
|
|
7
|
-
const
|
|
7
|
+
const R = { class: "sidebar" }, U = ["aria-label"], j = { class: "sidebar-group-title" }, q = -160, W = /* @__PURE__ */ F({
|
|
8
8
|
__name: "Sidebar",
|
|
9
9
|
props: {
|
|
10
10
|
parsedSpec: {},
|
|
@@ -12,49 +12,62 @@ const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-
|
|
|
12
12
|
operationsSorter: { type: [String, Function] }
|
|
13
13
|
},
|
|
14
14
|
setup(A) {
|
|
15
|
-
const
|
|
15
|
+
const m = A, { hash: p, isIntersectionEnabled: $ } = D(), { items: O, toggleCollapsedSidebarItem: T, collapsedSidebarItems: _ } = H(
|
|
16
16
|
{
|
|
17
|
-
parsedSpec:
|
|
18
|
-
tagsSorter:
|
|
19
|
-
operationsSorter:
|
|
17
|
+
parsedSpec: m.parsedSpec,
|
|
18
|
+
tagsSorter: m.tagsSorter,
|
|
19
|
+
operationsSorter: m.operationsSorter
|
|
20
20
|
}
|
|
21
|
-
),
|
|
22
|
-
|
|
23
|
-
!$.value ||
|
|
21
|
+
), b = E(null), u = E(!0);
|
|
22
|
+
I(p, (l) => {
|
|
23
|
+
!$.value || u.value || typeof window > "u" || k(l);
|
|
24
24
|
});
|
|
25
|
-
const k = (
|
|
26
|
-
var e, t,
|
|
27
|
-
const
|
|
28
|
-
if (!
|
|
25
|
+
const k = (l) => {
|
|
26
|
+
var e, t, s, a;
|
|
27
|
+
const i = document.getElementById(`sidebar-${l}`);
|
|
28
|
+
if (!i || !b.value)
|
|
29
29
|
return;
|
|
30
|
-
let
|
|
31
|
-
|
|
30
|
+
let c = q;
|
|
31
|
+
i.getAttribute("data-sidebar-type") === "heading" ? c += i.offsetTop + ((e = i.getElementsByClassName("sidebar-heading")) == null ? void 0 : e[0]).offsetHeight : c += i.offsetTop + (((t = i.parentElement) == null ? void 0 : t.offsetTop) ?? 0) + (((a = (s = i.parentElement) == null ? void 0 : s.parentElement) == null ? void 0 : a.offsetTop) ?? 0), b.value.scrollTo({ top: c, behavior: "smooth" });
|
|
32
|
+
}, B = (l) => {
|
|
33
|
+
if (!b.value)
|
|
34
|
+
return;
|
|
35
|
+
const i = new MutationObserver((c, e) => {
|
|
36
|
+
document.getElementById(`sidebar-${l}`) && (k(l), u.value = !1, e.disconnect());
|
|
37
|
+
});
|
|
38
|
+
return i.observe(b.value, {
|
|
39
|
+
childList: !0,
|
|
40
|
+
subtree: !0
|
|
41
|
+
}), i;
|
|
32
42
|
};
|
|
33
43
|
return N(() => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
const l = B(p.value);
|
|
45
|
+
L(() => {
|
|
46
|
+
l == null || l.disconnect();
|
|
47
|
+
});
|
|
48
|
+
}), (l, i) => {
|
|
49
|
+
var c;
|
|
50
|
+
return r(), d("div", R, [
|
|
51
|
+
w(l.$slots, "sidebar-start", {}, void 0, !0),
|
|
52
|
+
V("nav", {
|
|
40
53
|
ref_key: "scrollerEl",
|
|
41
|
-
ref:
|
|
42
|
-
"aria-label": `Table of contents for ${(
|
|
54
|
+
ref: b,
|
|
55
|
+
"aria-label": `Table of contents for ${(c = l.parsedSpec.info) == null ? void 0 : c.title}`,
|
|
43
56
|
class: "sidebar-pages custom-scroll custom-scroll-self-contain-overflow"
|
|
44
57
|
}, [
|
|
45
|
-
|
|
46
|
-
default:
|
|
47
|
-
(r(!0),
|
|
58
|
+
G(g, { level: 0 }, {
|
|
59
|
+
default: h(() => [
|
|
60
|
+
(r(!0), d(o, null, y(n(O).entries, (e) => (r(), d(o, {
|
|
48
61
|
key: e.id
|
|
49
62
|
}, [
|
|
50
|
-
e.isGroup ? (r(),
|
|
51
|
-
|
|
52
|
-
(r(!0),
|
|
63
|
+
e.isGroup ? (r(), d(o, { key: 0 }, [
|
|
64
|
+
V("li", j, M(e.displayTitle ?? e.title), 1),
|
|
65
|
+
(r(!0), d(o, null, y(e.children, (t) => (r(), f(S, {
|
|
53
66
|
key: t.id,
|
|
54
67
|
id: `sidebar-${t.id}`,
|
|
55
68
|
"data-sidebar-type": "heading",
|
|
56
69
|
hasChildren: t.children && t.children.length > 0,
|
|
57
|
-
isActive:
|
|
70
|
+
isActive: n(p) === t.id,
|
|
58
71
|
item: {
|
|
59
72
|
id: t.id,
|
|
60
73
|
title: t.displayTitle ?? t.title,
|
|
@@ -62,49 +75,49 @@ const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-
|
|
|
62
75
|
httpVerb: t.httpVerb,
|
|
63
76
|
deprecated: t.deprecated ?? !1
|
|
64
77
|
},
|
|
65
|
-
open:
|
|
78
|
+
open: n(_)[t.id] ?? !1,
|
|
66
79
|
onToggleOpen: async () => {
|
|
67
|
-
|
|
80
|
+
u.value = !0, n(T)(t.id), await n(C)(100), u.value = !1;
|
|
68
81
|
}
|
|
69
82
|
}, {
|
|
70
|
-
default:
|
|
71
|
-
var
|
|
83
|
+
default: h(() => {
|
|
84
|
+
var s;
|
|
72
85
|
return [
|
|
73
|
-
t.children && ((
|
|
86
|
+
t.children && ((s = t.children) == null ? void 0 : s.length) > 0 ? (r(), f(g, {
|
|
74
87
|
key: 0,
|
|
75
88
|
level: 1
|
|
76
89
|
}, {
|
|
77
|
-
default:
|
|
78
|
-
(r(!0),
|
|
79
|
-
key:
|
|
90
|
+
default: h(() => [
|
|
91
|
+
(r(!0), d(o, null, y(t.children, (a) => (r(), d(o, {
|
|
92
|
+
key: a.id
|
|
80
93
|
}, [
|
|
81
|
-
e.show ? (r(),
|
|
94
|
+
e.show ? (r(), f(S, {
|
|
82
95
|
key: 0,
|
|
83
|
-
id: `sidebar-${
|
|
84
|
-
isActive:
|
|
96
|
+
id: `sidebar-${a.id}`,
|
|
97
|
+
isActive: n(p) === a.id,
|
|
85
98
|
item: {
|
|
86
|
-
id:
|
|
87
|
-
title:
|
|
88
|
-
select:
|
|
89
|
-
httpVerb:
|
|
90
|
-
deprecated:
|
|
99
|
+
id: a.id,
|
|
100
|
+
title: a.displayTitle ?? a.title,
|
|
101
|
+
select: a.select,
|
|
102
|
+
httpVerb: a.httpVerb,
|
|
103
|
+
deprecated: a.deprecated ?? !1
|
|
91
104
|
}
|
|
92
|
-
}, null, 8, ["id", "isActive", "item"])) :
|
|
105
|
+
}, null, 8, ["id", "isActive", "item"])) : v("", !0)
|
|
93
106
|
], 64))), 128))
|
|
94
107
|
]),
|
|
95
108
|
_: 2
|
|
96
|
-
}, 1024)) :
|
|
109
|
+
}, 1024)) : v("", !0)
|
|
97
110
|
];
|
|
98
111
|
}),
|
|
99
112
|
_: 2
|
|
100
113
|
}, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"]))), 128))
|
|
101
|
-
], 64)) : (r(),
|
|
102
|
-
e.show ? (r(),
|
|
114
|
+
], 64)) : (r(), d(o, { key: 1 }, [
|
|
115
|
+
e.show ? (r(), f(S, {
|
|
103
116
|
key: 0,
|
|
104
117
|
id: `sidebar-${e.id}`,
|
|
105
118
|
"data-sidebar-type": "heading",
|
|
106
119
|
hasChildren: e.children && e.children.length > 0,
|
|
107
|
-
isActive:
|
|
120
|
+
isActive: n(p) === e.id,
|
|
108
121
|
item: {
|
|
109
122
|
id: e.id,
|
|
110
123
|
title: e.displayTitle ?? e.title,
|
|
@@ -112,53 +125,53 @@ const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-
|
|
|
112
125
|
httpVerb: e.httpVerb,
|
|
113
126
|
deprecated: e.deprecated ?? !1
|
|
114
127
|
},
|
|
115
|
-
open:
|
|
128
|
+
open: n(_)[e.id] ?? !1,
|
|
116
129
|
onToggleOpen: async () => {
|
|
117
|
-
|
|
130
|
+
u.value = !0, n(T)(e.id), await n(C)(100), u.value = !1;
|
|
118
131
|
}
|
|
119
132
|
}, {
|
|
120
|
-
default:
|
|
133
|
+
default: h(() => {
|
|
121
134
|
var t;
|
|
122
135
|
return [
|
|
123
|
-
e.children && ((t = e.children) == null ? void 0 : t.length) > 0 ? (r(),
|
|
136
|
+
e.children && ((t = e.children) == null ? void 0 : t.length) > 0 ? (r(), f(g, {
|
|
124
137
|
key: 0,
|
|
125
138
|
level: 1
|
|
126
139
|
}, {
|
|
127
|
-
default:
|
|
128
|
-
(r(!0),
|
|
129
|
-
key:
|
|
140
|
+
default: h(() => [
|
|
141
|
+
(r(!0), d(o, null, y(e.children, (s) => (r(), d(o, {
|
|
142
|
+
key: s.id
|
|
130
143
|
}, [
|
|
131
|
-
e.show ? (r(),
|
|
144
|
+
e.show ? (r(), f(S, {
|
|
132
145
|
key: 0,
|
|
133
|
-
id: `sidebar-${
|
|
134
|
-
isActive:
|
|
146
|
+
id: `sidebar-${s.id}`,
|
|
147
|
+
isActive: n(p) === s.id,
|
|
135
148
|
item: {
|
|
136
|
-
id:
|
|
137
|
-
title:
|
|
138
|
-
select:
|
|
139
|
-
httpVerb:
|
|
140
|
-
deprecated:
|
|
149
|
+
id: s.id,
|
|
150
|
+
title: s.displayTitle ?? s.title,
|
|
151
|
+
select: s.select,
|
|
152
|
+
httpVerb: s.httpVerb,
|
|
153
|
+
deprecated: s.deprecated ?? !1
|
|
141
154
|
}
|
|
142
|
-
}, null, 8, ["id", "isActive", "item"])) :
|
|
155
|
+
}, null, 8, ["id", "isActive", "item"])) : v("", !0)
|
|
143
156
|
], 64))), 128))
|
|
144
157
|
]),
|
|
145
158
|
_: 2
|
|
146
|
-
}, 1024)) :
|
|
159
|
+
}, 1024)) : v("", !0)
|
|
147
160
|
];
|
|
148
161
|
}),
|
|
149
162
|
_: 2
|
|
150
|
-
}, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"])) :
|
|
163
|
+
}, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"])) : v("", !0)
|
|
151
164
|
], 64))
|
|
152
165
|
], 64))), 128))
|
|
153
166
|
]),
|
|
154
167
|
_: 1
|
|
155
168
|
})
|
|
156
|
-
], 8,
|
|
157
|
-
|
|
169
|
+
], 8, U),
|
|
170
|
+
w(l.$slots, "sidebar-end", {}, void 0, !0)
|
|
158
171
|
]);
|
|
159
172
|
};
|
|
160
173
|
}
|
|
161
174
|
});
|
|
162
175
|
export {
|
|
163
|
-
|
|
176
|
+
W as default
|
|
164
177
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8f90da18"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -28,7 +28,7 @@ const D = ["id"], L = {
|
|
|
28
28
|
setup(k, { emit: y }) {
|
|
29
29
|
const i = k, p = y, { getFullHash: u, isIntersectionEnabled: r, replaceUrlState: w } = I(), l = U(), f = async () => {
|
|
30
30
|
var e, t;
|
|
31
|
-
i.hasChildren && p("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e),
|
|
31
|
+
r.value = !1, i.hasChildren && p("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), await C(100), r.value = !0;
|
|
32
32
|
}, S = () => {
|
|
33
33
|
if (l.value.pathRouting)
|
|
34
34
|
return R(l.value.pathRouting.basePath, i.item.id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/SingleApiReference.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAW5E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"SingleApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/SingleApiReference.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAW5E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CAClD,CAAC;AAyCF,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;wBAVrB,GAAG;wBACH,GAAG;qCACU,GAAG;;;;EAa5C;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,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"}
|