@scalar/api-reference 1.48.8 → 1.49.0
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 +33 -0
- package/dist/browser/standalone.js +9866 -9838
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +2 -4
- package/dist/components/Content/Content.vue.d.ts +2 -4
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +77 -83
- package/dist/components/Content/Models/ModelTag.vue.d.ts +3 -3
- package/dist/components/Content/Models/ModelTag.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelTag.vue.js +42 -48
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +3 -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 +9 -1
- package/dist/components/Content/Schema/helpers/should-display-description.js +1 -1
- package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts +2 -2
- package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/components/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Tags/components/ModernLayout.vue2.js +18 -26
- package/dist/components/Lazy/Lazy.vue.d.ts +3 -0
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/Lazy/Lazy.vue.js +93 -4
- package/dist/features/ask-agent-button/AskAgentButton.vue.d.ts.map +1 -1
- package/dist/features/ask-agent-button/AskAgentButton.vue.js +1 -1
- package/dist/features/ask-agent-button/AskAgentButton.vue2.js +18 -14
- package/dist/helpers/id-routing.d.ts +4 -0
- package/dist/helpers/id-routing.d.ts.map +1 -1
- package/dist/helpers/id-routing.js +51 -5
- package/dist/helpers/lazy-bus.d.ts +19 -19
- package/dist/helpers/lazy-bus.d.ts.map +1 -1
- package/dist/helpers/lazy-bus.js +63 -28
- package/dist/style.css +126 -124
- package/package.json +11 -11
|
@@ -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":"AAmxCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AAOpC,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4CAA4C,CAAA;AAuDnD,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,oBAAoB,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,MAAM,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC,CAAC;AA+2CF,QAAA,MAAM,UAAU;;;;oPAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -4,7 +4,7 @@ import _sfc_main from "./ApiReference.vue2.js";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
7
|
+
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f95a4f7c"]]);
|
|
8
8
|
export {
|
|
9
9
|
ApiReference as default
|
|
10
10
|
};
|
|
@@ -24,7 +24,7 @@ import _sfc_main$2 from "../features/multiple-documents/DocumentSelector.vue.js"
|
|
|
24
24
|
import _sfc_main$3 from "../features/Search/components/SearchButton.vue.js";
|
|
25
25
|
import { getSystemModePreference } from "../helpers/color-mode.js";
|
|
26
26
|
import { downloadDocument } from "../helpers/download.js";
|
|
27
|
-
import { getIdFromUrl, makeUrlFromId } from "../helpers/id-routing.js";
|
|
27
|
+
import { getIdFromUrl, makeUrlFromId, matchesBasePath } from "../helpers/id-routing.js";
|
|
28
28
|
import { intersectionEnabled, addToPriorityQueue, scrollToLazy, blockIntersection } from "../helpers/lazy-bus.js";
|
|
29
29
|
import { loadClientFromStorage, loadAuthFromStorage } from "../helpers/load-from-perssistance.js";
|
|
30
30
|
import { mapConfigPlugins } from "../helpers/map-config-plugins.js";
|
|
@@ -102,9 +102,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102
102
|
);
|
|
103
103
|
const initialId = getIdFromUrl(
|
|
104
104
|
url,
|
|
105
|
-
basePaths.find(
|
|
106
|
-
(p) => p && url.pathname.startsWith(p.startsWith("/") ? p : `/${p}`)
|
|
107
|
-
),
|
|
105
|
+
basePaths.find((p) => p ? matchesBasePath(url, p) : false),
|
|
108
106
|
isMultiDocument.value ? void 0 : activeSlug.value
|
|
109
107
|
);
|
|
110
108
|
const documentSlug = initialId.split("/")[0];
|
|
@@ -19,13 +19,11 @@ type __VLS_Props = {
|
|
|
19
19
|
/** Heading id generator for Markdown headings */
|
|
20
20
|
headingSlugGenerator: (heading: Heading) => string;
|
|
21
21
|
};
|
|
22
|
-
declare var __VLS_6: {},
|
|
22
|
+
declare var __VLS_6: {}, __VLS_76: {};
|
|
23
23
|
type __VLS_Slots = {} & {
|
|
24
24
|
start?: (props: typeof __VLS_6) => any;
|
|
25
25
|
} & {
|
|
26
|
-
|
|
27
|
-
} & {
|
|
28
|
-
end?: (props: typeof __VLS_85) => any;
|
|
26
|
+
end?: (props: typeof __VLS_76) => any;
|
|
29
27
|
};
|
|
30
28
|
declare const __VLS_base: 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>;
|
|
31
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAsNA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AACtG,OAAO,KAAK,EACV,SAAS,EACT,iBAAiB,EAClB,MAAM,2CAA2C,CAAA;AAiBlD,KAAK,WAAW,GAAG;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,gFAAgF;IAChF,OAAO,EAAE,IAAI,CACX,4BAA4B,EAC1B,gBAAgB,GAChB,eAAe,GACf,sBAAsB,GACtB,oBAAoB,GACpB,eAAe,GACf,uBAAuB,GACvB,QAAQ,GACR,8BAA8B,GAC9B,yBAAyB,GACzB,aAAa,GACb,UAAU,GACV,SAAS,GACT,iBAAiB,CACpB,CAAA;IACD,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAA;IACvC,SAAS,EAAE,SAAS,CAAA;IACpB,oBAAoB,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAA;IAC1D,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,WAAW,EAAE,kBAAkB,CAAA;IAC/B,iDAAiD;IACjD,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;CACnD,CAAC;AA6UJ,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAG5C,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, unref, renderSlot, createBlock, createCommentVNode, withCtx } from "vue";
|
|
1
|
+
import { defineComponent, computed, onMounted, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, unref, renderSlot, createBlock, createCommentVNode, withCtx } from "vue";
|
|
2
2
|
import { generateClientOptions } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
3
3
|
import { mergeSecurity } from "@scalar/api-client/v2/blocks/scalar-auth-selector-block";
|
|
4
4
|
import { mapHiddenClientsConfig } from "@scalar/api-client/v2/features/modal";
|
|
5
5
|
import { getSelectedServer } from "@scalar/api-client/v2/features/operation";
|
|
6
6
|
import { getServers } from "@scalar/api-client/v2/helpers";
|
|
7
7
|
import { ScalarErrorBoundary } from "@scalar/components";
|
|
8
|
-
import _sfc_main$
|
|
9
|
-
import
|
|
10
|
-
import { firstLazyLoadComplete } from "../../helpers/lazy-bus.js";
|
|
8
|
+
import _sfc_main$4 from "./Operations/TraversedEntry.vue.js";
|
|
9
|
+
import { scheduleInitialLoadComplete, firstLazyLoadComplete } from "../../helpers/lazy-bus.js";
|
|
11
10
|
import { getXKeysFromObject } from "../../features/specification-extension/helpers.js";
|
|
12
11
|
import SectionFlare from "../SectionFlare/SectionFlare.vue.js";
|
|
13
|
-
import _sfc_main$
|
|
12
|
+
import _sfc_main$1 from "../../blocks/scalar-info-block/components/InfoBlock.vue.js";
|
|
14
13
|
import IntroductionCardItem from "../../blocks/scalar-info-block/components/IntroductionCardItem.vue.js";
|
|
15
|
-
import _sfc_main$
|
|
16
|
-
import _sfc_main$
|
|
14
|
+
import _sfc_main$2 from "../../blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
|
|
15
|
+
import _sfc_main$3 from "./Auth/Auth.vue.js";
|
|
17
16
|
import ClientSelector from "../../blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
|
|
18
|
-
import _sfc_main$
|
|
17
|
+
import _sfc_main$5 from "../RenderPlugins/RenderPlugins.vue.js";
|
|
19
18
|
const _hoisted_1 = { class: "narrow-references-container" };
|
|
20
19
|
const _hoisted_2 = {
|
|
21
20
|
key: 1,
|
|
@@ -58,97 +57,92 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
57
|
__props.document?.["x-scalar-navigation"]?.name ?? ""
|
|
59
58
|
)
|
|
60
59
|
);
|
|
60
|
+
onMounted(() => {
|
|
61
|
+
scheduleInitialLoadComplete();
|
|
62
|
+
});
|
|
61
63
|
return (_ctx, _cache) => {
|
|
62
64
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
63
65
|
createVNode(unref(SectionFlare)),
|
|
64
66
|
createElementVNode("div", _hoisted_1, [
|
|
65
67
|
renderSlot(_ctx.$slots, "start"),
|
|
66
|
-
createVNode(_sfc_main$1, {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
68
|
+
createVNode(unref(_sfc_main$1), {
|
|
69
|
+
id: __props.infoSectionId,
|
|
70
|
+
documentDownloadType: __props.options.documentDownloadType,
|
|
71
|
+
documentExtensions: documentExtensions.value,
|
|
72
|
+
documentUrl: __props.document?.["x-scalar-original-source-url"],
|
|
73
|
+
eventBus: __props.eventBus,
|
|
74
|
+
externalDocs: __props.document?.externalDocs,
|
|
75
|
+
headingSlugGenerator: __props.headingSlugGenerator,
|
|
76
|
+
info: __props.document?.info,
|
|
77
|
+
infoExtensions: infoExtensions.value,
|
|
78
|
+
layout: __props.options.layout,
|
|
79
|
+
oasVersion: __props.document?.["x-original-oas-version"]
|
|
80
|
+
}, {
|
|
81
|
+
selectors: withCtx(() => [
|
|
82
|
+
createVNode(unref(ScalarErrorBoundary), null, {
|
|
83
|
+
default: withCtx(() => [
|
|
84
|
+
servers.value?.length ? (openBlock(), createBlock(unref(IntroductionCardItem), {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
|
|
87
|
+
}, {
|
|
86
88
|
default: withCtx(() => [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
createVNode(unref(_sfc_main$3), {
|
|
93
|
-
eventBus: __props.eventBus,
|
|
94
|
-
selectedServer: selectedServer.value,
|
|
95
|
-
servers: servers.value
|
|
96
|
-
}, null, 8, ["eventBus", "selectedServer", "servers"])
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
})) : createCommentVNode("", true)
|
|
89
|
+
createVNode(unref(_sfc_main$2), {
|
|
90
|
+
eventBus: __props.eventBus,
|
|
91
|
+
selectedServer: selectedServer.value,
|
|
92
|
+
servers: servers.value
|
|
93
|
+
}, null, 8, ["eventBus", "selectedServer", "servers"])
|
|
100
94
|
]),
|
|
101
95
|
_: 1
|
|
102
|
-
}),
|
|
103
|
-
|
|
96
|
+
})) : createCommentVNode("", true)
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}),
|
|
100
|
+
createVNode(unref(ScalarErrorBoundary), null, {
|
|
101
|
+
default: withCtx(() => [
|
|
102
|
+
__props.document && !__props.options.hideTestRequestButton ? (openBlock(), createBlock(unref(IntroductionCardItem), {
|
|
103
|
+
key: 0,
|
|
104
|
+
class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
|
|
105
|
+
}, {
|
|
104
106
|
default: withCtx(() => [
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
eventBus: __props.eventBus,
|
|
115
|
-
options: __props.options,
|
|
116
|
-
securitySchemes: securitySchemes.value,
|
|
117
|
-
selectedServer: selectedServer.value
|
|
118
|
-
}, null, 8, ["authStore", "document", "environment", "eventBus", "options", "securitySchemes", "selectedServer"])
|
|
119
|
-
]),
|
|
120
|
-
_: 1
|
|
121
|
-
})) : createCommentVNode("", true)
|
|
107
|
+
createVNode(unref(_sfc_main$3), {
|
|
108
|
+
authStore: __props.authStore,
|
|
109
|
+
document: __props.document,
|
|
110
|
+
environment: __props.environment,
|
|
111
|
+
eventBus: __props.eventBus,
|
|
112
|
+
options: __props.options,
|
|
113
|
+
securitySchemes: securitySchemes.value,
|
|
114
|
+
selectedServer: selectedServer.value
|
|
115
|
+
}, null, 8, ["authStore", "document", "environment", "eventBus", "options", "securitySchemes", "selectedServer"])
|
|
122
116
|
]),
|
|
123
117
|
_: 1
|
|
124
|
-
}),
|
|
125
|
-
|
|
118
|
+
})) : createCommentVNode("", true)
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
}),
|
|
122
|
+
createVNode(unref(ScalarErrorBoundary), null, {
|
|
123
|
+
default: withCtx(() => [
|
|
124
|
+
clientOptions.value.length ? (openBlock(), createBlock(unref(IntroductionCardItem), {
|
|
125
|
+
key: 0,
|
|
126
|
+
class: "introduction-card-item scalar-reference-intro-clients"
|
|
127
|
+
}, {
|
|
126
128
|
default: withCtx(() => [
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
clientOptions: clientOptions.value,
|
|
135
|
-
eventBus: __props.eventBus,
|
|
136
|
-
selectedClient: __props.xScalarDefaultClient,
|
|
137
|
-
xScalarSdkInstallation: __props.document?.info?.["x-scalar-sdk-installation"]
|
|
138
|
-
}, null, 8, ["clientOptions", "eventBus", "selectedClient", "xScalarSdkInstallation"])
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
})) : createCommentVNode("", true)
|
|
129
|
+
createVNode(unref(ClientSelector), {
|
|
130
|
+
class: "introduction-card-item scalar-reference-intro-clients",
|
|
131
|
+
clientOptions: clientOptions.value,
|
|
132
|
+
eventBus: __props.eventBus,
|
|
133
|
+
selectedClient: __props.xScalarDefaultClient,
|
|
134
|
+
xScalarSdkInstallation: __props.document?.info?.["x-scalar-sdk-installation"]
|
|
135
|
+
}, null, 8, ["clientOptions", "eventBus", "selectedClient", "xScalarSdkInstallation"])
|
|
142
136
|
]),
|
|
143
137
|
_: 1
|
|
144
|
-
})
|
|
138
|
+
})) : createCommentVNode("", true)
|
|
145
139
|
]),
|
|
146
140
|
_: 1
|
|
147
|
-
}
|
|
141
|
+
})
|
|
148
142
|
]),
|
|
149
|
-
_:
|
|
150
|
-
}, 8, ["id"]),
|
|
151
|
-
__props.items.length && __props.document ? (openBlock(), createBlock(_sfc_main$
|
|
143
|
+
_: 1
|
|
144
|
+
}, 8, ["id", "documentDownloadType", "documentExtensions", "documentUrl", "eventBus", "externalDocs", "headingSlugGenerator", "info", "infoExtensions", "layout", "oasVersion"]),
|
|
145
|
+
__props.items.length && __props.document ? (openBlock(), createBlock(_sfc_main$4, {
|
|
152
146
|
key: 0,
|
|
153
147
|
authStore: __props.authStore,
|
|
154
148
|
clientOptions: clientOptions.value,
|
|
@@ -161,7 +155,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
161
155
|
selectedClient: __props.xScalarDefaultClient,
|
|
162
156
|
selectedServer: selectedServer.value
|
|
163
157
|
}, null, 8, ["authStore", "clientOptions", "document", "entries", "eventBus", "expandedItems", "options", "securitySchemes", "selectedClient", "selectedServer"])) : createCommentVNode("", true),
|
|
164
|
-
createVNode(unref(_sfc_main$
|
|
158
|
+
createVNode(unref(_sfc_main$5), {
|
|
165
159
|
options: __props.options,
|
|
166
160
|
viewName: "content.end"
|
|
167
161
|
}, null, 8, ["options"]),
|
|
@@ -5,11 +5,11 @@ type __VLS_Props = {
|
|
|
5
5
|
eventBus: WorkspaceEventBus;
|
|
6
6
|
layout: 'classic' | 'modern';
|
|
7
7
|
};
|
|
8
|
-
declare var
|
|
8
|
+
declare var __VLS_28: {}, __VLS_53: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
|
-
default?: (props: typeof
|
|
10
|
+
default?: (props: typeof __VLS_28) => any;
|
|
11
11
|
} & {
|
|
12
|
-
default?: (props: typeof
|
|
12
|
+
default?: (props: typeof __VLS_53) => any;
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_base: 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>;
|
|
15
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelTag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModelTag.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModelTag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModelTag.vue"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAQvE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;CAC7B,CAAC;AA+JF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAMhD,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineComponent, createBlock, openBlock, withCtx, createVNode, unref, renderSlot, createTextVNode } from "vue";
|
|
2
|
-
import _sfc_main$1 from "../../Lazy/Lazy.vue.js";
|
|
3
2
|
import SectionContainer from "../../Section/SectionContainer.vue.js";
|
|
4
3
|
import SectionContainerAccordion from "../../Section/SectionContainerAccordion.vue.js";
|
|
5
4
|
import SectionHeaderTag from "../../Section/SectionHeaderTag.vue.js";
|
|
@@ -16,64 +15,59 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
15
|
},
|
|
17
16
|
setup(__props) {
|
|
18
17
|
return (_ctx, _cache) => {
|
|
19
|
-
return openBlock(), createBlock(
|
|
18
|
+
return __props.layout === "modern" ? (openBlock(), createBlock(SectionContainer, {
|
|
19
|
+
key: 0,
|
|
20
|
+
id: "model"
|
|
21
|
+
}, {
|
|
20
22
|
default: withCtx(() => [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
createVNode(unref(Section), {
|
|
24
|
+
id: __props.id,
|
|
25
|
+
"aria-label": "Models",
|
|
26
|
+
onIntersecting: _cache[1] || (_cache[1] = () => __props.eventBus?.emit("intersecting:nav-item", { id: __props.id }))
|
|
24
27
|
}, {
|
|
25
28
|
default: withCtx(() => [
|
|
26
|
-
createVNode(unref(
|
|
27
|
-
id: __props.id,
|
|
28
|
-
"aria-label": "Models",
|
|
29
|
-
onIntersecting: _cache[1] || (_cache[1] = () => __props.eventBus?.emit("intersecting:nav-item", { id: __props.id }))
|
|
30
|
-
}, {
|
|
29
|
+
createVNode(unref(SectionHeader), null, {
|
|
31
30
|
default: withCtx(() => [
|
|
32
|
-
createVNode(
|
|
33
|
-
default: withCtx(() => [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
createTextVNode(" Models ", -1)
|
|
37
|
-
])]),
|
|
38
|
-
_: 1
|
|
39
|
-
})
|
|
40
|
-
]),
|
|
31
|
+
createVNode(SectionHeaderTag, { level: 2 }, {
|
|
32
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
33
|
+
createTextVNode(" Models ", -1)
|
|
34
|
+
])]),
|
|
41
35
|
_: 1
|
|
42
|
-
})
|
|
43
|
-
!__props.isCollapsed ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(ShowMoreButton, {
|
|
44
|
-
key: 1,
|
|
45
|
-
id: __props.id,
|
|
46
|
-
class: "top-0",
|
|
47
|
-
onClick: _cache[0] || (_cache[0] = () => __props.eventBus.emit("toggle:nav-item", { id: __props.id, open: true }))
|
|
48
|
-
}, null, 8, ["id"]))
|
|
36
|
+
})
|
|
49
37
|
]),
|
|
50
|
-
_: 3
|
|
51
|
-
}, 8, ["id"])
|
|
52
|
-
]),
|
|
53
|
-
_: 3
|
|
54
|
-
})) : (openBlock(), createBlock(SectionContainerAccordion, {
|
|
55
|
-
key: 1,
|
|
56
|
-
"aria-label": "Models",
|
|
57
|
-
class: "pb-12",
|
|
58
|
-
modelValue: !__props.isCollapsed,
|
|
59
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = () => __props.eventBus?.emit("toggle:nav-item", { id: __props.id, open: __props.isCollapsed }))
|
|
60
|
-
}, {
|
|
61
|
-
title: withCtx(() => [
|
|
62
|
-
createVNode(unref(SectionHeader), { level: 2 }, {
|
|
63
|
-
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
64
|
-
createTextVNode("Models", -1)
|
|
65
|
-
])]),
|
|
66
38
|
_: 1
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
39
|
+
}),
|
|
40
|
+
!__props.isCollapsed ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(ShowMoreButton, {
|
|
41
|
+
key: 1,
|
|
42
|
+
id: __props.id,
|
|
43
|
+
class: "top-0",
|
|
44
|
+
onClick: _cache[0] || (_cache[0] = () => __props.eventBus.emit("toggle:nav-item", { id: __props.id, open: true }))
|
|
45
|
+
}, null, 8, ["id"]))
|
|
71
46
|
]),
|
|
72
47
|
_: 3
|
|
73
|
-
}, 8, ["
|
|
48
|
+
}, 8, ["id"])
|
|
49
|
+
]),
|
|
50
|
+
_: 3
|
|
51
|
+
})) : (openBlock(), createBlock(SectionContainerAccordion, {
|
|
52
|
+
key: 1,
|
|
53
|
+
"aria-label": "Models",
|
|
54
|
+
class: "pb-12",
|
|
55
|
+
modelValue: !__props.isCollapsed,
|
|
56
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = () => __props.eventBus?.emit("toggle:nav-item", { id: __props.id, open: __props.isCollapsed }))
|
|
57
|
+
}, {
|
|
58
|
+
title: withCtx(() => [
|
|
59
|
+
createVNode(unref(SectionHeader), { level: 2 }, {
|
|
60
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
61
|
+
createTextVNode("Models", -1)
|
|
62
|
+
])]),
|
|
63
|
+
_: 1
|
|
64
|
+
})
|
|
65
|
+
]),
|
|
66
|
+
default: withCtx(() => [
|
|
67
|
+
renderSlot(_ctx.$slots, "default")
|
|
74
68
|
]),
|
|
75
69
|
_: 3
|
|
76
|
-
});
|
|
70
|
+
}, 8, ["modelValue"]));
|
|
77
71
|
};
|
|
78
72
|
}
|
|
79
73
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AA6MA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAC3F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAA;AACpG,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EACV,cAAc,EAMf,MAAM,4CAA4C,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAShG,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,SAAS,EAAE,SAAS,CAAA;IACpB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kCAAkC;IAClC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,0BAA0B;IAC1B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,+CAA+C;IAC/C,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,kFAAkF;IAClF,OAAO,EAAE,IAAI,CACX,4BAA4B,EAC1B,oBAAoB,GACpB,uBAAuB,GACvB,QAAQ,GACR,8BAA8B,GAC9B,yBAAyB,GACzB,iBAAiB,CACpB,CAAA;IACD,iDAAiD;IACjD,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,wFAAwF;IACxF,eAAe,EAAE,qBAAqB,CAAA;IACtC,sDAAsD;IACtD,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,iDAAiD;IACjD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,iDAAiD;IACjD,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;AA+SF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -36,7 +36,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
return openBlock(true), createElementBlock(Fragment, null, renderList(__props.entries, (entry) => {
|
|
37
37
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
38
38
|
id: entry.id,
|
|
39
|
-
key: `${entry.id}-${__props.options.layout}
|
|
39
|
+
key: `${entry.id}-${__props.options.layout}`,
|
|
40
|
+
expanded: !!__props.expandedItems[entry.id]
|
|
40
41
|
}, {
|
|
41
42
|
default: withCtx(() => [
|
|
42
43
|
isOperation(entry) || isWebhook(entry) ? (openBlock(), createBlock(unref(SectionContainer), {
|
|
@@ -135,7 +136,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
136
|
}, null, 8, ["id", "eventBus", "isCollapsed", "name", "options", "schema"])) : createCommentVNode("", true)
|
|
136
137
|
]),
|
|
137
138
|
_: 2
|
|
138
|
-
}, 1032, ["id"]);
|
|
139
|
+
}, 1032, ["id", "expanded"]);
|
|
139
140
|
}), 128);
|
|
140
141
|
};
|
|
141
142
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAucA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAetE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kGAAkG;IAClG,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;IACtB,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC7B,CAAC;AAqeJ,QAAA,MAAM,YAAY;WArfN,MAAM;cAEH,OAAO;aACR,OAAO;oBAGA,OAAO;6EAkf1B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6031fee6"]]);
|
|
5
5
|
export {
|
|
6
6
|
SchemaProperty as default
|
|
7
7
|
};
|
|
@@ -89,6 +89,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
89
|
const displayDescription = computed(
|
|
90
90
|
() => shouldDisplayDescription(optimizedValue.value, props.description)
|
|
91
91
|
);
|
|
92
|
+
const objectSchemaForChildren = computed(() => {
|
|
93
|
+
const value = optimizedValue.value;
|
|
94
|
+
if (!value || !displayDescription.value || !("description" in value)) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
const { description: _description, ...schemaWithoutDescription } = value;
|
|
98
|
+
return schemaWithoutDescription;
|
|
99
|
+
});
|
|
92
100
|
const shouldDisplayHeadingComputed = computed(
|
|
93
101
|
() => shouldDisplayHeading(optimizedValue.value, props.name, props.required)
|
|
94
102
|
);
|
|
@@ -186,7 +194,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
186
194
|
name: __props.name,
|
|
187
195
|
noncollapsible: __props.noncollapsible,
|
|
188
196
|
options: __props.options,
|
|
189
|
-
schema:
|
|
197
|
+
schema: objectSchemaForChildren.value
|
|
190
198
|
}, null, 8, ["breadcrumb", "compact", "eventBus", "level", "name", "noncollapsible", "options", "schema"])
|
|
191
199
|
])) : createCommentVNode("", true),
|
|
192
200
|
shouldRenderArrayOfObjects.value && resolvedArrayItems.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
@@ -2,7 +2,7 @@ const shouldDisplayDescription = (schema, propDescription) => {
|
|
|
2
2
|
if (!schema) {
|
|
3
3
|
return null;
|
|
4
4
|
}
|
|
5
|
-
if (
|
|
5
|
+
if (schema.allOf) {
|
|
6
6
|
return null;
|
|
7
7
|
}
|
|
8
8
|
return propDescription || schema.description || null;
|
|
@@ -7,9 +7,9 @@ type __VLS_Props = {
|
|
|
7
7
|
isCollapsed: boolean;
|
|
8
8
|
eventBus: WorkspaceEventBus | null;
|
|
9
9
|
};
|
|
10
|
-
declare var
|
|
10
|
+
declare var __VLS_20: {};
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
|
-
default?: (props: typeof
|
|
12
|
+
default?: (props: typeof __VLS_20) => any;
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_base: 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>;
|
|
15
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Tags/components/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Tags/components/ModernLayout.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACnC,CAAC;AA0GF,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ModernLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8f1a275c"]]);
|
|
5
5
|
export {
|
|
6
6
|
ModernLayout as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { defineComponent, useId, computed, createBlock, openBlock, unref, withCtx,
|
|
2
|
-
import _sfc_main$1 from "../../../Lazy/Lazy.vue.js";
|
|
1
|
+
import { defineComponent, useId, computed, createBlock, openBlock, unref, withCtx, createCommentVNode, createElementBlock, renderSlot } from "vue";
|
|
3
2
|
import ShowMoreButton from "../../../ShowMoreButton.vue.js";
|
|
4
|
-
import _sfc_main$
|
|
3
|
+
import _sfc_main$1 from "./TagSection.vue.js";
|
|
5
4
|
import SectionContainer from "../../../Section/SectionContainer.vue.js";
|
|
6
5
|
const _hoisted_1 = {
|
|
7
|
-
key:
|
|
8
|
-
class: "contents"
|
|
6
|
+
key: 2,
|
|
7
|
+
class: "contents divide-y"
|
|
9
8
|
};
|
|
10
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
10
|
__name: "ModernLayout",
|
|
@@ -29,27 +28,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
28
|
role: "region"
|
|
30
29
|
}, {
|
|
31
30
|
default: withCtx(() => [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
id: __props.tag.id,
|
|
47
|
-
"aria-label": `Show all ${__props.tag.title} endpoints`,
|
|
48
|
-
onClick: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("toggle:nav-item", { id: __props.tag.id, open: true }))
|
|
49
|
-
}, null, 8, ["id", "aria-label"])) : createCommentVNode("", true)
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
}, 8, ["id"]),
|
|
31
|
+
moreThanOneDefaultTag.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
32
|
+
key: 0,
|
|
33
|
+
eventBus: __props.eventBus,
|
|
34
|
+
headerId: unref(headerId),
|
|
35
|
+
isCollapsed: __props.isCollapsed,
|
|
36
|
+
isLoading: __props.isLoading,
|
|
37
|
+
tag: __props.tag
|
|
38
|
+
}, null, 8, ["eventBus", "headerId", "isCollapsed", "isLoading", "tag"])) : createCommentVNode("", true),
|
|
39
|
+
__props.isCollapsed && __props.moreThanOneTag && hasChildren.value ? (openBlock(), createBlock(ShowMoreButton, {
|
|
40
|
+
key: 1,
|
|
41
|
+
id: __props.tag.id,
|
|
42
|
+
"aria-label": `Show all ${__props.tag.title} endpoints`,
|
|
43
|
+
onClick: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("toggle:nav-item", { id: __props.tag.id, open: true }))
|
|
44
|
+
}, null, 8, ["id", "aria-label"])) : createCommentVNode("", true),
|
|
53
45
|
!(__props.isCollapsed && __props.moreThanOneTag) ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
54
46
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
55
47
|
])) : createCommentVNode("", true)
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/** Identifier for this lazy section; used for scroll-to and bus registration. */
|
|
2
3
|
id: string;
|
|
4
|
+
/** When true, render the slot so child Lazy placeholders mount (e.g. for navigation). */
|
|
5
|
+
expanded?: boolean;
|
|
3
6
|
};
|
|
4
7
|
declare var __VLS_1: {};
|
|
5
8
|
type __VLS_Slots = {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lazy.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Lazy/Lazy.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Lazy.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Lazy/Lazy.vue"],"names":[],"mappings":"AA4JA,KAAK,WAAW,GAAG;IACjB,iFAAiF;IACjF,EAAE,EAAE,MAAM,CAAA;IACV,yFAAyF;IACzF,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAmIF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAO/C,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|