@scalar/api-reference 1.35.5 → 1.35.7
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 +53 -0
- package/dist/blocks/helpers/getPointer.d.ts.map +1 -1
- package/dist/browser/standalone.js +19316 -19449
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/WithBreadcrumb.vue2.js +8 -11
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +4 -4
- package/dist/components/ApiReferenceLayout.vue2.js +247 -268
- package/dist/components/Badge/Badge.vue.js +1 -1
- package/dist/components/ClassicHeader.vue.js +1 -1
- package/dist/components/Content/Content.vue.js +145 -169
- package/dist/components/Content/Content.vue3.js +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue2.js +32 -35
- package/dist/components/Content/Models/Models.vue.js +27 -31
- package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +32 -35
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +26 -27
- package/dist/components/Content/Operations/get-current-index.js +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +1 -1
- package/dist/components/Content/Schema/Schema.vue2.js +68 -74
- package/dist/components/Content/Schema/SchemaComposition.vue.js +42 -45
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +45 -50
- package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +41 -48
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +142 -157
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +160 -164
- package/dist/components/Content/Schema/helpers/get-schema-type.js +15 -17
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +74 -77
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +10 -11
- package/dist/components/Content/Tags/ClassicLayout.vue.js +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue2.js +36 -39
- package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue2.js +31 -35
- package/dist/components/Content/Tags/TagSection.vue.js +86 -92
- package/dist/components/GettingStarted.vue.js +1 -1
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/Lazy/Lazy.vue2.js +2 -2
- package/dist/components/LinkList/LinkList.vue.js +1 -1
- package/dist/components/LoadingSkeleton.vue.js +1 -1
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.js +3 -3
- package/dist/components/MobileHeader.vue2.js +13 -12
- package/dist/components/OperationPath.vue.js +1 -1
- package/dist/components/OperationsList/OperationsList.vue.js +1 -1
- package/dist/components/OperationsList/OperationsList.vue2.js +45 -51
- package/dist/components/OperationsList/OperationsListItem.vue.js +1 -1
- package/dist/components/ScreenReader.vue.js +1 -1
- package/dist/components/Section/CompactSection.vue.js +1 -1
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/Section/Section.vue2.js +13 -14
- package/dist/components/Section/SectionAccordion.vue.js +1 -1
- package/dist/components/Section/SectionAccordion.vue2.js +29 -30
- package/dist/components/Section/SectionColumn.vue.js +1 -1
- package/dist/components/Section/SectionColumns.vue.js +1 -1
- package/dist/components/Section/SectionContainer.vue.js +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +1 -1
- package/dist/components/Section/SectionContent.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue.js +1 -1
- package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
- package/dist/components/SectionFlare/SectionFlare.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue2.js +12 -13
- package/dist/features/Operation/Operation.vue.js +31 -36
- package/dist/features/Operation/components/Headers.vue.js +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +8 -11
- package/dist/features/Operation/components/ParameterList.vue.js +21 -24
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue2.js +36 -37
- package/dist/features/Operation/components/RequestBody.vue.js +1 -1
- package/dist/features/Operation/components/RequestBody.vue2.js +45 -52
- package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +32 -35
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +4 -4
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +114 -119
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +87 -89
- package/dist/features/Search/components/SearchButton.vue.js +23 -25
- package/dist/features/Search/components/SearchModal.vue.js +1 -1
- package/dist/features/Search/components/SearchModal.vue2.js +53 -54
- package/dist/features/api-client-modal/ApiClientModal.vue.js +31 -38
- package/dist/features/document-source/hooks/useDocumentFetcher.js +17 -18
- package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentSource.js +21 -20
- package/dist/features/example-responses/ExampleResponse.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponse.vue2.js +23 -26
- package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue2.js +128 -153
- package/dist/features/info-object/Contact.vue.js +24 -27
- package/dist/features/info-object/License.vue.js +26 -29
- package/dist/features/multiple-documents/DocumentSelector.vue.js +22 -31
- package/dist/features/multiple-documents/useMultipleDocuments.js +52 -56
- package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
- package/dist/features/sidebar/components/Sidebar.vue2.js +74 -79
- package/dist/features/sidebar/components/SidebarElement.vue.js +3 -3
- package/dist/features/sidebar/components/SidebarElement.vue2.js +52 -53
- package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
- package/dist/features/specification-extension/SpecificationExtension.vue2.js +28 -31
- package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue2.js +1 -2
- package/dist/features/traverse-schema/helpers/traverse-description.js +13 -14
- package/dist/features/traverse-schema/helpers/traverse-document.js +14 -15
- package/dist/features/traverse-schema/helpers/traverse-paths.js +20 -23
- package/dist/features/traverse-schema/helpers/traverse-schemas.js +13 -15
- package/dist/features/traverse-schema/helpers/traverse-webhooks.js +8 -10
- package/dist/hooks/useFreezing.js +14 -14
- package/dist/hooks/useNavState.js +37 -39
- package/dist/index.js +2 -2
- package/dist/libs/openapi.js +28 -31
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +102 -103
- package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +116 -135
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +40 -47
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +45 -46
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +109 -125
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +84 -84
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.js +12 -13
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +1 -4
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +77 -82
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +56 -50
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +74 -89
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +24 -27
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +2 -2
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +111 -118
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +11 -12
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +3 -3
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.js +11 -14
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +45 -48
- package/dist/v2/helpers/get-document-name.js +10 -10
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/dist/v2/helpers/map-configuration.js +48 -51
- package/dist/v2/hooks/use-legacy-store-events.js +44 -48
- package/dist/v2/hooks/use-workspace-store-events.js +23 -26
- package/package.json +24 -23
- package/dist/components/ApiReferenceLayout.vue3.js +0 -4
- package/dist/components/ApiReferenceLayout.vue4.js +0 -4
- package/dist/components/ApiReferenceLayout.vue5.js +0 -4
- package/dist/components/ApiReferenceLayout.vue6.js +0 -4
- package/dist/components/Badge/Badge.vue3.js +0 -4
- package/dist/components/ClassicHeader.vue2.js +0 -4
- package/dist/components/Content/Content.vue2.js +0 -4
- package/dist/components/Content/Models/ClassicLayout.vue3.js +0 -4
- package/dist/components/Content/Models/ModernLayout.vue3.js +0 -4
- package/dist/components/Content/Schema/Schema.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaHeading.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaProperty.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +0 -4
- package/dist/components/Content/Tags/ClassicLayout.vue3.js +0 -4
- package/dist/components/Content/Tags/ModernLayout.vue3.js +0 -4
- package/dist/components/GettingStarted.vue3.js +0 -4
- package/dist/components/LinkList/LinkList.vue3.js +0 -4
- package/dist/components/LoadingSkeleton.vue3.js +0 -4
- package/dist/components/MobileHeader.vue3.js +0 -4
- package/dist/components/OperationPath.vue3.js +0 -4
- package/dist/components/OperationsList/OperationsList.vue3.js +0 -4
- package/dist/components/OperationsList/OperationsListItem.vue3.js +0 -4
- package/dist/components/ScreenReader.vue3.js +0 -4
- package/dist/components/Section/CompactSection.vue3.js +0 -4
- package/dist/components/Section/Section.vue3.js +0 -4
- package/dist/components/Section/SectionAccordion.vue3.js +0 -4
- package/dist/components/Section/SectionColumn.vue2.js +0 -4
- package/dist/components/Section/SectionColumns.vue2.js +0 -4
- package/dist/components/Section/SectionContainer.vue3.js +0 -4
- package/dist/components/Section/SectionContainerAccordion.vue3.js +0 -4
- package/dist/components/Section/SectionContent.vue3.js +0 -4
- package/dist/components/Section/SectionHeader.vue3.js +0 -4
- package/dist/components/Section/SectionHeaderTag.vue3.js +0 -4
- package/dist/components/SectionFlare/SectionFlare.vue2.js +0 -4
- package/dist/components/ShowMoreButton.vue3.js +0 -4
- package/dist/features/Operation/components/Headers.vue3.js +0 -4
- package/dist/features/Operation/components/ParameterListItem.vue3.js +0 -4
- package/dist/features/Operation/components/RequestBody.vue3.js +0 -4
- package/dist/features/Operation/components/callbacks/Callback.vue3.js +0 -4
- package/dist/features/Operation/layouts/ClassicLayout.vue3.js +0 -4
- package/dist/features/Operation/layouts/ModernLayout.vue3.js +0 -4
- package/dist/features/Search/components/SearchModal.vue3.js +0 -4
- package/dist/features/example-responses/ExampleResponse.vue3.js +0 -4
- package/dist/features/example-responses/ExampleResponseTab.vue3.js +0 -4
- package/dist/features/example-responses/ExampleResponseTabList.vue3.js +0 -4
- package/dist/features/example-responses/ExampleResponses.vue3.js +0 -4
- package/dist/features/sidebar/components/Sidebar.vue3.js +0 -4
- package/dist/features/sidebar/components/SidebarElement.vue3.js +0 -4
- package/dist/features/sidebar/components/SidebarGroup.vue3.js +0 -4
- package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +0 -4
- package/dist/features/test-request-button/TestRequestButton.vue3.js +0 -4
- package/dist/v2/ApiReferenceWorkspace.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue3.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue3.js +0 -4
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue3.js +0 -4
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue3.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue3.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue3.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue3.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue2.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue3.js +0 -4
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +0 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DataTableRow as f, DataTableCell as
|
|
3
|
-
import { useWorkspace as
|
|
4
|
-
import { ScalarMarkdownSummary as
|
|
5
|
-
import { safeLocalStorage as
|
|
6
|
-
import { isDefined as
|
|
7
|
-
import { emitCustomEvent as
|
|
8
|
-
import { updateScheme as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as O, computed as K, ref as D, onMounted as M, useTemplateRef as P, createElementBlock as u, openBlock as l, Fragment as d, createElementVNode as x, renderList as $, createBlock as g, createCommentVNode as y, unref as s, withCtx as n, createVNode as i, toDisplayString as A, mergeProps as v, createTextVNode as V, normalizeClass as I, capitalize as S } from "vue";
|
|
2
|
+
import { DataTableRow as f, DataTableCell as R } from "@scalar/api-client/components/DataTable";
|
|
3
|
+
import { useWorkspace as z } from "@scalar/api-client/store";
|
|
4
|
+
import { ScalarMarkdownSummary as H } from "@scalar/components";
|
|
5
|
+
import { safeLocalStorage as N, CLIENT_LS_KEYS as j } from "@scalar/helpers/object/local-storage";
|
|
6
|
+
import { isDefined as B } from "@scalar/oas-utils/helpers";
|
|
7
|
+
import { emitCustomEvent as F } from "@scalar/workspace-store/events";
|
|
8
|
+
import { updateScheme as Q } from "../helpers/update-scheme.js";
|
|
9
|
+
import q from "./OAuth2.vue.js";
|
|
10
|
+
import k from "./RequestAuthDataTableInput.vue.js";
|
|
11
|
+
const J = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, Y = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex min-h-8 border-t text-base"
|
|
14
|
-
},
|
|
14
|
+
}, W = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, G = ["onClick"], X = { class: "relative z-10" }, se = /* @__PURE__ */ O({
|
|
15
15
|
__name: "RequestAuthTab",
|
|
16
16
|
props: {
|
|
17
17
|
collection: {},
|
|
@@ -23,28 +23,28 @@ const Y = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
23
23
|
server: {},
|
|
24
24
|
workspace: {}
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
() =>
|
|
26
|
+
setup(m) {
|
|
27
|
+
const h = z(), { securitySchemes: U } = h, C = K(
|
|
28
|
+
() => m.securitySchemeUids.map((t) => ({
|
|
29
29
|
scheme: U[t]
|
|
30
30
|
}))
|
|
31
|
-
),
|
|
31
|
+
), p = D(""), T = (t) => {
|
|
32
32
|
const r = t.description ? `: ${t.description}` : "", e = `${S(t.nameKey)}${r || `: ${t.type}`}`;
|
|
33
33
|
if (t.type === "apiKey")
|
|
34
34
|
return `${S(t.nameKey)}${r || `: ${t.in}`}`;
|
|
35
35
|
if (t.type === "oauth2") {
|
|
36
36
|
const a = Object.values(t.flows ?? {})[0];
|
|
37
|
-
return `${S(t.nameKey)}: ${
|
|
37
|
+
return `${S(t.nameKey)}: ${p.value ? p.value : a?.type ?? ""}${r}`;
|
|
38
38
|
}
|
|
39
39
|
return t.type === "http" ? `${S(t.nameKey)}: ${t.scheme}${r}` : `${e}${r}`;
|
|
40
40
|
}, w = (t, r, e) => {
|
|
41
|
-
|
|
41
|
+
Q(t, r, e, h, _.value, m.persistAuth);
|
|
42
42
|
};
|
|
43
|
-
|
|
44
|
-
if (!
|
|
43
|
+
M(() => {
|
|
44
|
+
if (!m.persistAuth)
|
|
45
45
|
return;
|
|
46
46
|
const t = JSON.parse(
|
|
47
|
-
|
|
47
|
+
N().getItem(j.AUTH) ?? "{}"
|
|
48
48
|
), r = Object.keys(U).reduce(
|
|
49
49
|
(e, a) => {
|
|
50
50
|
const o = U[a];
|
|
@@ -54,59 +54,59 @@ const Y = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
54
54
|
);
|
|
55
55
|
Object.entries(t).forEach(([e, a]) => {
|
|
56
56
|
const o = r[e];
|
|
57
|
-
o && Object.entries(a).forEach(([
|
|
58
|
-
|
|
57
|
+
o && Object.entries(a).forEach(([E, L]) => {
|
|
58
|
+
F(_.value, "scalar-edit-security-scheme", {
|
|
59
59
|
uid: o,
|
|
60
|
-
path:
|
|
61
|
-
value:
|
|
60
|
+
path: E,
|
|
61
|
+
value: L
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
try {
|
|
66
66
|
const a = JSON.parse(
|
|
67
|
-
|
|
68
|
-
).map((o) => Array.isArray(o) ? o.map((
|
|
69
|
-
|
|
67
|
+
N().getItem(j.SELECTED_SECURITY_SCHEMES) ?? ""
|
|
68
|
+
).map((o) => Array.isArray(o) ? o.map((c) => r[c]).filter(B) : r[o]).filter(B);
|
|
69
|
+
F(_.value, "scalar-select-security-schemes", {
|
|
70
70
|
uids: a
|
|
71
71
|
});
|
|
72
72
|
} catch {
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
-
const
|
|
76
|
-
environment:
|
|
77
|
-
envVariables:
|
|
78
|
-
workspace:
|
|
79
|
-
}, _ =
|
|
80
|
-
return (t, r) => (l(), u(
|
|
75
|
+
const b = {
|
|
76
|
+
environment: m.environment,
|
|
77
|
+
envVariables: m.envVariables,
|
|
78
|
+
workspace: m.workspace
|
|
79
|
+
}, _ = P("wrapperRef");
|
|
80
|
+
return (t, r) => (l(), u(d, null, [
|
|
81
81
|
x("div", {
|
|
82
82
|
ref_key: "wrapperRef",
|
|
83
83
|
ref: _
|
|
84
84
|
}, null, 512),
|
|
85
|
-
(l(!0), u(
|
|
86
|
-
key: e
|
|
85
|
+
(l(!0), u(d, null, $(C.value, ({ scheme: e }) => (l(), u(d, {
|
|
86
|
+
key: e?.uid
|
|
87
87
|
}, [
|
|
88
|
-
C.value.length > 1 && e ? (l(), g(
|
|
88
|
+
C.value.length > 1 && e ? (l(), g(s(f), { key: 0 }, {
|
|
89
89
|
default: n(() => [
|
|
90
|
-
i(
|
|
91
|
-
"aria-label":
|
|
90
|
+
i(s(R), {
|
|
91
|
+
"aria-label": T(e),
|
|
92
92
|
class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
|
|
93
93
|
}, {
|
|
94
94
|
default: n(() => [
|
|
95
|
-
x("p",
|
|
95
|
+
x("p", J, A(T(e)), 1)
|
|
96
96
|
]),
|
|
97
97
|
_: 2
|
|
98
98
|
}, 1032, ["aria-label"])
|
|
99
99
|
]),
|
|
100
100
|
_: 2
|
|
101
|
-
}, 1024)) :
|
|
102
|
-
e
|
|
101
|
+
}, 1024)) : y("", !0),
|
|
102
|
+
e?.description && C.value.length <= 1 ? (l(), g(s(f), { key: 1 }, {
|
|
103
103
|
default: n(() => [
|
|
104
|
-
i(
|
|
104
|
+
i(s(R), {
|
|
105
105
|
"aria-label": e.description,
|
|
106
106
|
class: "max-h-[auto]"
|
|
107
107
|
}, {
|
|
108
108
|
default: n(() => [
|
|
109
|
-
i(
|
|
109
|
+
i(s(H), {
|
|
110
110
|
class: "auth-description bg-b-1 text-c-2 min-w-0 flex-1 px-3 py-1.25",
|
|
111
111
|
value: e.description
|
|
112
112
|
}, null, 8, ["value"])
|
|
@@ -115,11 +115,11 @@ const Y = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
115
115
|
}, 1032, ["aria-label"])
|
|
116
116
|
]),
|
|
117
117
|
_: 2
|
|
118
|
-
}, 1024)) :
|
|
119
|
-
|
|
120
|
-
e.scheme === "bearer" ? (l(), g(
|
|
118
|
+
}, 1024)) : y("", !0),
|
|
119
|
+
e?.type === "http" ? (l(), u(d, { key: 2 }, [
|
|
120
|
+
e.scheme === "bearer" ? (l(), g(s(f), { key: 0 }, {
|
|
121
121
|
default: n(() => [
|
|
122
|
-
i(
|
|
122
|
+
i(k, v({ ref_for: !0 }, b, {
|
|
123
123
|
containerClass: t.layout === "reference" && "border-t",
|
|
124
124
|
modelValue: e.token,
|
|
125
125
|
placeholder: "Token",
|
|
@@ -127,17 +127,17 @@ const Y = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
127
127
|
"onUpdate:modelValue": (a) => w(e.uid, "token", a)
|
|
128
128
|
}), {
|
|
129
129
|
default: n(() => r[0] || (r[0] = [
|
|
130
|
-
|
|
130
|
+
V(" Bearer Token ")
|
|
131
131
|
])),
|
|
132
132
|
_: 2,
|
|
133
133
|
__: [0]
|
|
134
134
|
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
135
135
|
]),
|
|
136
136
|
_: 2
|
|
137
|
-
}, 1024)) :
|
|
138
|
-
i(
|
|
137
|
+
}, 1024)) : e?.scheme === "basic" ? (l(), u(d, { key: 1 }, [
|
|
138
|
+
i(s(f), null, {
|
|
139
139
|
default: n(() => [
|
|
140
|
-
i(
|
|
140
|
+
i(k, v({ ref_for: !0 }, b, {
|
|
141
141
|
class: "text-c-2",
|
|
142
142
|
modelValue: e.username,
|
|
143
143
|
placeholder: "janedoe",
|
|
@@ -145,7 +145,7 @@ const Y = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
145
145
|
"onUpdate:modelValue": (a) => w(e.uid, "username", a)
|
|
146
146
|
}), {
|
|
147
147
|
default: n(() => r[1] || (r[1] = [
|
|
148
|
-
|
|
148
|
+
V(" Username ")
|
|
149
149
|
])),
|
|
150
150
|
_: 2,
|
|
151
151
|
__: [1]
|
|
@@ -153,16 +153,16 @@ const Y = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
153
153
|
]),
|
|
154
154
|
_: 2
|
|
155
155
|
}, 1024),
|
|
156
|
-
i(
|
|
156
|
+
i(s(f), null, {
|
|
157
157
|
default: n(() => [
|
|
158
|
-
i(
|
|
158
|
+
i(k, v({ ref_for: !0 }, b, {
|
|
159
159
|
modelValue: e.password,
|
|
160
160
|
placeholder: "********",
|
|
161
161
|
type: "password",
|
|
162
162
|
"onUpdate:modelValue": (a) => w(e.uid, "password", a)
|
|
163
163
|
}), {
|
|
164
164
|
default: n(() => r[2] || (r[2] = [
|
|
165
|
-
|
|
165
|
+
V(" Password ")
|
|
166
166
|
])),
|
|
167
167
|
_: 2,
|
|
168
168
|
__: [2]
|
|
@@ -170,18 +170,18 @@ const Y = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
170
170
|
]),
|
|
171
171
|
_: 2
|
|
172
172
|
}, 1024)
|
|
173
|
-
], 64)) :
|
|
174
|
-
], 64)) :
|
|
175
|
-
i(
|
|
173
|
+
], 64)) : y("", !0)
|
|
174
|
+
], 64)) : e?.type === "apiKey" ? (l(), u(d, { key: 3 }, [
|
|
175
|
+
i(s(f), null, {
|
|
176
176
|
default: n(() => [
|
|
177
|
-
i(
|
|
177
|
+
i(k, v({ ref_for: !0 }, b, {
|
|
178
178
|
containerClass: t.layout === "reference" && "border-t",
|
|
179
179
|
modelValue: e.name,
|
|
180
180
|
placeholder: "api-key",
|
|
181
181
|
"onUpdate:modelValue": (a) => w(e.uid, "name", a)
|
|
182
182
|
}), {
|
|
183
183
|
default: n(() => r[3] || (r[3] = [
|
|
184
|
-
|
|
184
|
+
V(" Name ")
|
|
185
185
|
])),
|
|
186
186
|
_: 2,
|
|
187
187
|
__: [3]
|
|
@@ -189,16 +189,16 @@ const Y = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
189
189
|
]),
|
|
190
190
|
_: 2
|
|
191
191
|
}, 1024),
|
|
192
|
-
i(
|
|
192
|
+
i(s(f), null, {
|
|
193
193
|
default: n(() => [
|
|
194
|
-
i(
|
|
194
|
+
i(k, v({ ref_for: !0 }, b, {
|
|
195
195
|
modelValue: e.value,
|
|
196
196
|
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
197
197
|
type: "password",
|
|
198
198
|
"onUpdate:modelValue": (a) => w(e.uid, "value", a)
|
|
199
199
|
}), {
|
|
200
200
|
default: n(() => r[4] || (r[4] = [
|
|
201
|
-
|
|
201
|
+
V(" Value ")
|
|
202
202
|
])),
|
|
203
203
|
_: 2,
|
|
204
204
|
__: [4]
|
|
@@ -206,48 +206,48 @@ const Y = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
206
206
|
]),
|
|
207
207
|
_: 2
|
|
208
208
|
}, 1024)
|
|
209
|
-
], 64)) :
|
|
210
|
-
i(
|
|
209
|
+
], 64)) : e?.type === "oauth2" ? (l(), u(d, { key: 4 }, [
|
|
210
|
+
i(s(f), null, {
|
|
211
211
|
default: n(() => [
|
|
212
|
-
Object.keys(e.flows).length > 1 ? (l(), u("div",
|
|
213
|
-
x("div",
|
|
214
|
-
(l(!0), u(
|
|
212
|
+
Object.keys(e.flows).length > 1 ? (l(), u("div", Y, [
|
|
213
|
+
x("div", W, [
|
|
214
|
+
(l(!0), u(d, null, $(e?.flows, (a, o, c) => (l(), u("button", {
|
|
215
215
|
key: o,
|
|
216
|
-
class:
|
|
217
|
-
"!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (
|
|
218
|
-
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (
|
|
216
|
+
class: I(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
|
|
217
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (p.value === o || c === 0 && !p.value),
|
|
218
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (p.value === o || c === 0 && !p.value)
|
|
219
219
|
}]),
|
|
220
220
|
type: "button",
|
|
221
|
-
onClick: (
|
|
221
|
+
onClick: (E) => p.value = o
|
|
222
222
|
}, [
|
|
223
|
-
x("span",
|
|
224
|
-
], 10,
|
|
223
|
+
x("span", X, A(o), 1)
|
|
224
|
+
], 10, G))), 128))
|
|
225
225
|
])
|
|
226
|
-
])) :
|
|
226
|
+
])) : y("", !0)
|
|
227
227
|
]),
|
|
228
228
|
_: 2
|
|
229
229
|
}, 1024),
|
|
230
|
-
(l(!0), u(
|
|
231
|
-
|
|
230
|
+
(l(!0), u(d, null, $(e?.flows, (a, o, c) => (l(), u(d, { key: o }, [
|
|
231
|
+
p.value === o || c === 0 && !p.value ? (l(), g(q, v({
|
|
232
232
|
key: 0,
|
|
233
233
|
ref_for: !0
|
|
234
|
-
},
|
|
234
|
+
}, b, {
|
|
235
235
|
collection: t.collection,
|
|
236
236
|
flow: a,
|
|
237
237
|
persistAuth: t.persistAuth,
|
|
238
238
|
scheme: e,
|
|
239
239
|
server: t.server,
|
|
240
240
|
workspace: t.workspace
|
|
241
|
-
}), null, 16, ["collection", "flow", "persistAuth", "scheme", "server", "workspace"])) :
|
|
241
|
+
}), null, 16, ["collection", "flow", "persistAuth", "scheme", "server", "workspace"])) : y("", !0)
|
|
242
242
|
], 64))), 128))
|
|
243
|
-
], 64)) :
|
|
243
|
+
], 64)) : e?.type === "openIdConnect" ? (l(), u("div", {
|
|
244
244
|
key: 5,
|
|
245
|
-
class:
|
|
246
|
-
}, " Coming soon ", 2)) :
|
|
245
|
+
class: I(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": t.layout === "reference" }])
|
|
246
|
+
}, " Coming soon ", 2)) : y("", !0)
|
|
247
247
|
], 64))), 128))
|
|
248
248
|
], 64));
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
251
|
export {
|
|
252
|
-
|
|
252
|
+
se as default
|
|
253
253
|
};
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { safeLocalStorage as
|
|
2
|
-
import { emitCustomEvent as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
path: o,
|
|
1
|
+
import { safeLocalStorage as s, CLIENT_LS_KEYS as c } from "@scalar/helpers/object/local-storage";
|
|
2
|
+
import { emitCustomEvent as S } from "@scalar/workspace-store/events";
|
|
3
|
+
const p = (t, r, m, { securitySchemes: a }, n, i = !1) => {
|
|
4
|
+
if (S(n, "scalar-edit-security-scheme", {
|
|
5
|
+
uid: t,
|
|
6
|
+
path: r,
|
|
8
7
|
value: m
|
|
9
|
-
}), !!
|
|
8
|
+
}), !!i)
|
|
10
9
|
try {
|
|
11
|
-
const e = JSON.parse(
|
|
12
|
-
if (e &&
|
|
13
|
-
const
|
|
14
|
-
|
|
10
|
+
const e = JSON.parse(s().getItem(c.AUTH) ?? "{}"), o = a[t];
|
|
11
|
+
if (e && o?.nameKey) {
|
|
12
|
+
const f = e[o.nameKey] ||= {};
|
|
13
|
+
f[r] = m, s().setItem(c.AUTH, JSON.stringify(e));
|
|
15
14
|
}
|
|
16
15
|
} catch (e) {
|
|
17
16
|
console.error(e);
|
|
18
17
|
}
|
|
19
18
|
};
|
|
20
19
|
export {
|
|
21
|
-
|
|
20
|
+
p as updateScheme
|
|
22
21
|
};
|
|
@@ -40,10 +40,7 @@ const K = { class: "client-libraries-text" }, M = {
|
|
|
40
40
|
e.id
|
|
41
41
|
);
|
|
42
42
|
}, c = S(
|
|
43
|
-
() =>
|
|
44
|
-
var e;
|
|
45
|
-
return (e = v.xSelectedClient) == null ? void 0 : e.split("/")[0];
|
|
46
|
-
}
|
|
43
|
+
() => v.xSelectedClient?.split("/")[0]
|
|
47
44
|
);
|
|
48
45
|
return (e, t) => (i(), o("div", {
|
|
49
46
|
ref_key: "containerRef",
|
|
@@ -1,124 +1,119 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { TabGroup as
|
|
3
|
-
import { ScalarMarkdown as
|
|
4
|
-
import { emitCustomEvent as
|
|
5
|
-
import { getFeaturedClients as
|
|
6
|
-
import { DEFAULT_CLIENT as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as g, useId as b, computed as c, useTemplateRef as I, createElementBlock as o, createCommentVNode as f, openBlock as i, createVNode as r, unref as t, withCtx as u, createElementVNode as T, Fragment as x, normalizeClass as w, renderList as O, createBlock as L, createTextVNode as E, toDisplayString as S } from "vue";
|
|
2
|
+
import { TabGroup as N, TabList as P, TabPanels as B, TabPanel as F } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as V, ScalarCodeBlock as A } from "@scalar/components";
|
|
4
|
+
import { emitCustomEvent as D } from "@scalar/workspace-store/events";
|
|
5
|
+
import { getFeaturedClients as M, isFeaturedClient as z } from "../helpers/featured-clients.js";
|
|
6
|
+
import { DEFAULT_CLIENT as G } from "../../scalar-request-example-block/helpers/find-client.js";
|
|
7
|
+
import K from "./ClientDropdown.vue.js";
|
|
8
|
+
const R = {
|
|
9
9
|
key: 0,
|
|
10
10
|
ref: "wrapper-ref"
|
|
11
|
-
},
|
|
11
|
+
}, U = ["id"], _ = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "selected-client card-footer border-t-0 p-0",
|
|
14
14
|
role: "tabpanel",
|
|
15
15
|
tabindex: "1"
|
|
16
|
-
},
|
|
16
|
+
}, j = ["id"], Z = /* @__PURE__ */ g({
|
|
17
17
|
__name: "ClientSelector",
|
|
18
18
|
props: {
|
|
19
19
|
xScalarSdkInstallation: {},
|
|
20
20
|
clientOptions: {},
|
|
21
|
-
xSelectedClient: { default: () =>
|
|
21
|
+
xSelectedClient: { default: () => G }
|
|
22
22
|
},
|
|
23
|
-
setup(l, { expose:
|
|
24
|
-
const
|
|
23
|
+
setup(l, { expose: k }) {
|
|
24
|
+
const p = b(), m = b(), C = c(
|
|
25
25
|
() => l.clientOptions.flatMap(
|
|
26
|
-
(e) => e.options.find((
|
|
26
|
+
(e) => e.options.find((a) => a.id === l.xSelectedClient) ?? []
|
|
27
27
|
)[0]
|
|
28
|
-
),
|
|
29
|
-
() =>
|
|
28
|
+
), s = c(() => M(l.clientOptions)), y = c(
|
|
29
|
+
() => s.value.findIndex(
|
|
30
30
|
(e) => l.xSelectedClient === e.id
|
|
31
31
|
)
|
|
32
|
-
),
|
|
33
|
-
const
|
|
34
|
-
!
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
if (!Array.isArray(l.xScalarSdkInstallation) || !((n = l.xScalarSdkInstallation) != null && n.length))
|
|
32
|
+
), v = I("wrapper-ref"), h = (e) => {
|
|
33
|
+
const a = s.value[e];
|
|
34
|
+
!a || !v.value || D(v.value, "scalar-update-selected-client", a.id);
|
|
35
|
+
}, n = c(() => {
|
|
36
|
+
if (!Array.isArray(l.xScalarSdkInstallation) || !l.xScalarSdkInstallation?.length)
|
|
38
37
|
return;
|
|
39
|
-
const e = l.xScalarSdkInstallation.find((
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return u.lang.toLowerCase() === f;
|
|
38
|
+
const e = l.xScalarSdkInstallation.find((a) => {
|
|
39
|
+
const d = l.xSelectedClient?.split("/")[0]?.toLowerCase();
|
|
40
|
+
return a.lang.toLowerCase() === d;
|
|
43
41
|
});
|
|
44
42
|
if (e)
|
|
45
43
|
return e;
|
|
46
44
|
});
|
|
47
|
-
return
|
|
48
|
-
selectedClientOption:
|
|
49
|
-
}), (e,
|
|
50
|
-
r(t(
|
|
45
|
+
return k({
|
|
46
|
+
selectedClientOption: C
|
|
47
|
+
}), (e, a) => e.clientOptions.length ? (i(), o("div", R, [
|
|
48
|
+
r(t(N), {
|
|
51
49
|
manual: "",
|
|
52
|
-
selectedIndex:
|
|
53
|
-
onChange:
|
|
50
|
+
selectedIndex: y.value,
|
|
51
|
+
onChange: h
|
|
54
52
|
}, {
|
|
55
|
-
default:
|
|
56
|
-
|
|
57
|
-
id: t(
|
|
53
|
+
default: u(() => [
|
|
54
|
+
T("div", {
|
|
55
|
+
id: t(p),
|
|
58
56
|
class: "client-libraries-heading"
|
|
59
|
-
}, " Client Libraries ", 8,
|
|
60
|
-
r(t(
|
|
61
|
-
"aria-labelledby": t(
|
|
57
|
+
}, " Client Libraries ", 8, U),
|
|
58
|
+
r(t(P), {
|
|
59
|
+
"aria-labelledby": t(p),
|
|
62
60
|
class: "client-libraries-list"
|
|
63
61
|
}, {
|
|
64
|
-
default:
|
|
65
|
-
r(
|
|
62
|
+
default: u(() => [
|
|
63
|
+
r(K, {
|
|
66
64
|
clientOptions: e.clientOptions,
|
|
67
|
-
featuredClients:
|
|
68
|
-
morePanel: t(
|
|
65
|
+
featuredClients: s.value,
|
|
66
|
+
morePanel: t(m),
|
|
69
67
|
xSelectedClient: e.xSelectedClient
|
|
70
68
|
}, null, 8, ["clientOptions", "featuredClients", "morePanel", "xSelectedClient"])
|
|
71
69
|
]),
|
|
72
70
|
_: 1
|
|
73
71
|
}, 8, ["aria-labelledby"]),
|
|
74
|
-
r(t(
|
|
75
|
-
default:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
key: 0,
|
|
81
|
-
class: E(["selected-client card-footer -outline-offset-2", a.value.source && "rounded-b-none"]),
|
|
82
|
-
role: "tabpanel",
|
|
83
|
-
tabindex: "0"
|
|
84
|
-
}, [
|
|
85
|
-
r(t(M), {
|
|
86
|
-
value: a.value.description
|
|
87
|
-
}, null, 8, ["value"])
|
|
88
|
-
], 2)) : C("", !0),
|
|
89
|
-
a.value.source ? (i(), o("div", H, [
|
|
90
|
-
r(t(z), {
|
|
91
|
-
class: "rounded-t-none rounded-b-lg px-3 py-2 -outline-offset-1 has-focus:outline",
|
|
92
|
-
content: a.value.source,
|
|
93
|
-
copy: !0,
|
|
94
|
-
lang: "shell"
|
|
95
|
-
}, null, 8, ["content"])
|
|
96
|
-
])) : C("", !0)
|
|
97
|
-
], 64)) : t(R)(e.xSelectedClient) ? (i(!0), o(y, { key: 1 }, N(c.value, (d) => (i(), P(t(D), {
|
|
98
|
-
key: d.id,
|
|
99
|
-
class: "selected-client card-footer -outline-offset-2"
|
|
100
|
-
}, {
|
|
101
|
-
default: m(() => [
|
|
102
|
-
B(h(d.title), 1)
|
|
103
|
-
]),
|
|
104
|
-
_: 2
|
|
105
|
-
}, 1024))), 128)) : (i(), o("div", {
|
|
106
|
-
key: 2,
|
|
107
|
-
id: t(b),
|
|
108
|
-
class: "selected-client card-footer -outline-offset-2",
|
|
72
|
+
r(t(B), null, {
|
|
73
|
+
default: u(() => [
|
|
74
|
+
n.value?.source || n.value?.description ? (i(), o(x, { key: 0 }, [
|
|
75
|
+
n.value.description ? (i(), o("div", {
|
|
76
|
+
key: 0,
|
|
77
|
+
class: w(["selected-client card-footer -outline-offset-2", n.value.source && "rounded-b-none"]),
|
|
109
78
|
role: "tabpanel",
|
|
110
79
|
tabindex: "0"
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
|
|
80
|
+
}, [
|
|
81
|
+
r(t(V), {
|
|
82
|
+
value: n.value.description
|
|
83
|
+
}, null, 8, ["value"])
|
|
84
|
+
], 2)) : f("", !0),
|
|
85
|
+
n.value.source ? (i(), o("div", _, [
|
|
86
|
+
r(t(A), {
|
|
87
|
+
class: "rounded-t-none rounded-b-lg px-3 py-2 -outline-offset-1 has-focus:outline",
|
|
88
|
+
content: n.value.source,
|
|
89
|
+
copy: !0,
|
|
90
|
+
lang: "shell"
|
|
91
|
+
}, null, 8, ["content"])
|
|
92
|
+
])) : f("", !0)
|
|
93
|
+
], 64)) : t(z)(e.xSelectedClient) ? (i(!0), o(x, { key: 1 }, O(s.value, (d) => (i(), L(t(F), {
|
|
94
|
+
key: d.id,
|
|
95
|
+
class: "selected-client card-footer -outline-offset-2"
|
|
96
|
+
}, {
|
|
97
|
+
default: u(() => [
|
|
98
|
+
E(S(d.title), 1)
|
|
99
|
+
]),
|
|
100
|
+
_: 2
|
|
101
|
+
}, 1024))), 128)) : (i(), o("div", {
|
|
102
|
+
key: 2,
|
|
103
|
+
id: t(m),
|
|
104
|
+
class: "selected-client card-footer -outline-offset-2",
|
|
105
|
+
role: "tabpanel",
|
|
106
|
+
tabindex: "0"
|
|
107
|
+
}, S(C.value?.title), 9, j))
|
|
108
|
+
]),
|
|
114
109
|
_: 1
|
|
115
110
|
})
|
|
116
111
|
]),
|
|
117
112
|
_: 1
|
|
118
113
|
}, 8, ["selectedIndex"])
|
|
119
|
-
], 512)) :
|
|
114
|
+
], 512)) : f("", !0);
|
|
120
115
|
}
|
|
121
116
|
});
|
|
122
117
|
export {
|
|
123
|
-
|
|
118
|
+
Z as default
|
|
124
119
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadLink.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/DownloadLink.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DownloadLink.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/DownloadLink.vue"],"names":[],"mappings":"AAsNA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mBAAmB,EAAE,MAAM,MAAM,CAAA;CAClC,CAAC;;AA2KF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DownloadLink.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-0adf68b9"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|