@scalar/api-client 1.1.11 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts.map +1 -1
- package/dist/components/Grid/Grid.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridHeader.vue.d.ts +20 -0
- package/dist/components/Grid/GridHeader.vue.d.ts.map +1 -0
- package/dist/components/Grid/GridRow.vue.d.ts +26 -0
- package/dist/components/Grid/GridRow.vue.d.ts.map +1 -0
- package/dist/components/Grid/GridRowEditable.vue.d.ts +25 -0
- package/dist/components/Grid/GridRowEditable.vue.d.ts.map +1 -0
- package/dist/components/Grid/GridRowGenerated.vue.d.ts +17 -0
- package/dist/components/Grid/GridRowGenerated.vue.d.ts.map +1 -0
- package/dist/components/Grid/SimpleGrid.vue.d.ts.map +1 -1
- package/dist/helpers/getRequestFromAuthentication.d.ts.map +1 -1
- package/dist/index.css +400 -394
- package/dist/index.js +528 -311
- package/dist/stores/useAuthenticationStore.d.ts +26 -1
- package/dist/stores/useAuthenticationStore.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import "./index.css";
|
|
8
|
-
import { defineComponent, openBlock, createBlock, resolveDynamicComponent, withCtx, createTextVNode, toDisplayString, unref, createCommentVNode, onMounted, useCssModule, renderSlot, reactive, readonly, ref, computed, normalizeStyle, normalizeProps, guardReactiveProps, watch, onBeforeUnmount, toValue as toValue$1, toRef, createElementBlock, createElementVNode, createVNode, normalizeClass, Fragment, renderList, createStaticVNode, pushScopeId, popScopeId, mergeProps, nextTick, onServerPrefetch, defineAsyncComponent, Teleport, withModifiers, withDirectives,
|
|
8
|
+
import { defineComponent, openBlock, createBlock, resolveDynamicComponent, withCtx, createTextVNode, toDisplayString, unref, createCommentVNode, onMounted, useCssModule, renderSlot, reactive, readonly, ref, computed, normalizeStyle, normalizeProps, guardReactiveProps, watch, onBeforeUnmount, toValue as toValue$1, toRef, createElementBlock, createElementVNode, createVNode, normalizeClass, Fragment, renderList, createStaticVNode, pushScopeId, popScopeId, mergeProps, useAttrs, nextTick, onServerPrefetch, defineAsyncComponent, useCssVars, Teleport, withModifiers, withDirectives, vModelText, vModelCheckbox, vShow, toRaw, withKeys } from "vue";
|
|
9
9
|
import { Dialog, DialogPanel, DialogTitle, DialogDescription, Disclosure, DisclosureButton, DisclosurePanel, Listbox, ListboxButton, ListboxOptions, ListboxOption, TabGroup, TabList, Tab, TabPanels, TabPanel } from "@headlessui/vue";
|
|
10
10
|
import { useMagicKeys, whenever, useEventBus, useMediaQuery } from "@vueuse/core";
|
|
11
11
|
import axios from "axios";
|
|
@@ -24,7 +24,7 @@ const moonTheme = ".light-mode {\n color-scheme: light;\n --default-theme-colo
|
|
|
24
24
|
const purpleTheme = "/* basic theme */\n.light-mode {\n --default-theme-background-1: #fff;\n --default-theme-background-2: #f5f6f8;\n --default-theme-background-3: #eceef1;\n\n --default-theme-color-1: #2a2f45;\n --default-theme-color-2: #757575;\n --default-theme-color-3: #8e8e8e;\n\n --default-theme-color-accent: #5469d4;\n --default-theme-background-accent: #5469d41f;\n\n --default-theme-border-color: rgba(215, 215, 206, 0.5);\n}\n.dark-mode {\n --default-theme-background-1: #15171c;\n --default-theme-background-2: #1c1e24;\n --default-theme-background-3: #22252b;\n\n --default-theme-color-1: #fafafa;\n --default-theme-color-2: #c9ced8;\n --default-theme-color-3: #8c99ad;\n\n --default-theme-color-accent: #5469d4;\n --default-theme-background-accent: #5469d41f;\n\n --default-theme-border-color: rgba(255, 255, 255, 0.12);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-3);\n\n --default-sidebar-item-active-background: var(\n --default-theme-background-accent\n );\n --default-sidebar-color-active: var(--default-theme-color-accent);\n\n --default-sidebar-search-background: var(--default-theme-background-1);\n --default-sidebar-search-color: var(--default-theme-color-3);\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n}\n\n/* advanced */\n.light-mode {\n --default-theme-color-green: #17803d;\n --default-theme-color-red: #e10909;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #1763a6;\n --default-theme-color-orange: #e25b09;\n --default-theme-color-purple: #5c3993;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: #30a159;\n --default-theme-color-red: #dc1b19;\n --default-theme-color-yellow: #eec644;\n --default-theme-color-blue: #2b7abf;\n --default-theme-color-orange: #f07528;\n --default-theme-color-purple: #7a59b1;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n";
|
|
25
25
|
const saturnTheme = "/* basic theme */\n.light-mode {\n --default-theme-background-1: #f3f3ee;\n --default-theme-background-2: #e8e8e3;\n --default-theme-background-3: #e4e4df;\n --default-theme-border-color: rgba(215, 215, 206, 0.5);\n\n --default-theme-color-1: #2a2f45;\n --default-theme-color-2: #757575;\n --default-theme-color-3: #8e8e8e;\n\n --default-theme-color-accent: #1763a6;\n --default-theme-background-accent: #1f648e1f;\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n --default-theme-code-languages-background-supersede: var(\n --default-theme-background-2\n );\n}\n.dark-mode {\n --default-theme-background-1: #09090b;\n --default-theme-background-2: #18181b;\n --default-theme-background-3: #2c2c30;\n --default-theme-border-color: rgba(255, 255, 255, 0.12);\n\n --default-theme-color-1: #fafafa;\n --default-theme-color-2: rgb(161, 161, 170);\n --default-theme-color-3: rgba(255, 255, 255, 0.533);\n\n --default-theme-color-accent: #4eb3ec;\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n --default-theme-code-languages-background-supersede: var(\n --default-theme-background-2\n );\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-hover-color: currentColor;\n\n --default-sidebar-item-active-background: var(--default-theme-background-3);\n --default-sidebar-color-active: var(--default-theme-color-1);\n\n --default-sidebar-search-background: var(--default-theme-background-1);\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n --default-sidebar-search-color: var(--default-theme-color-3);\n}\n\n/* advanced */\n.light-mode {\n --default-theme-color-green: #17803d;\n --default-theme-color-red: #e10909;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #1763a6;\n --default-theme-color-orange: #e25b09;\n --default-theme-color-purple: #5c3993;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: #30a159;\n --default-theme-color-red: #dc1b19;\n --default-theme-color-yellow: #eec644;\n --default-theme-color-blue: #2b7abf;\n --default-theme-color-orange: #f07528;\n --default-theme-color-purple: #7a59b1;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n";
|
|
26
26
|
const solarizedTheme = ".light-mode {\n color-scheme: light;\n --default-theme-color-1: #584c27;\n --default-theme-color-2: #616161;\n --default-theme-color-3: #a89f84;\n --default-theme-color-accent: #b58900;\n --default-theme-background-1: #fdf6e3;\n --default-theme-background-2: #eee8d5;\n --default-theme-background-3: #ddd6c1;\n --default-theme-background-accent: #b589001f;\n\n --default-theme-border-color: #ded8c8;\n --default-theme-scrollbar-color: rgba(0, 0, 0, 0.18);\n --default-theme-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n --default-theme-lifted-brightness: 1;\n --default-theme-backdrop-brightness: 1;\n\n --default-theme-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --default-theme-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,\n rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;\n\n --default-theme-button-1: rgb(49 53 56);\n --default-theme-button-1-color: #fff;\n --default-theme-button-1-hover: rgb(28 31 33);\n\n --default-theme-color-red: #b91c1c;\n --default-theme-color-orange: #a16207;\n --default-theme-color-green: #047857;\n --default-theme-color-blue: #1d4ed8;\n --default-theme-color-orange: #c2410c;\n --default-theme-color-purple: #6d28d9;\n}\n\n.dark-mode {\n color-scheme: dark;\n --default-theme-color-1: #fff;\n --default-theme-color-2: #cccccc;\n --default-theme-color-3: #6d8890;\n --default-theme-color-accent: #007acc;\n --default-theme-background-1: #00212b;\n --default-theme-background-2: #012b36;\n --default-theme-background-3: #004052;\n --default-theme-background-accent: #015a6f;\n\n --default-theme-border-color: rgba(255, 255, 255, 0.1);\n --default-theme-scrollbar-color: rgba(255, 255, 255, 0.24);\n --default-theme-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n --default-theme-lifted-brightness: 1.45;\n --default-theme-backdrop-brightness: 0.5;\n\n --default-theme-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);\n --default-theme-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,\n rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);\n\n --default-theme-button-1: #f6f6f6;\n --default-theme-button-1-color: #000;\n --default-theme-button-1-hover: #e7e7e7;\n\n --default-theme-color-green: #00b648;\n --default-theme-color-red: #dc1b19;\n --default-theme-color-yellow: #ffc90d;\n --default-theme-color-blue: #4eb3ec;\n --default-theme-color-orange: #ff8d4d;\n --default-theme-color-purple: #b191f9;\n}\n\n/* Sidebar */\n.light-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-active-background: var(\n --default-theme-background-accent\n );\n --default-sidebar-border-color: var(--default-theme-border-color);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-color-active: var(--default-theme-color-accent);\n --default-sidebar-search-background: var(--default-theme-background-2);\n --default-sidebar-search-border-color: var(--sidebar-search-background);\n --default-sidebar-search--color: var(--default-theme-color-3);\n}\n\n.dark-mode .sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-active-background: var(\n --default-theme-background-accent\n );\n --default-sidebar-border-color: var(--default-theme-border-color);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-color-active: var(--default-sidebar-color-1);\n --default-sidebar-search-background: var(--default-theme-background-2);\n --default-sidebar-search-border-color: var(--sidebar-search-background);\n --default-sidebar-search--color: var(--default-theme-color-3);\n}\n";
|
|
27
|
-
const _sfc_main$
|
|
27
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
28
28
|
__name: "ThemeStyles",
|
|
29
29
|
props: {
|
|
30
30
|
id: {}
|
|
@@ -48,7 +48,7 @@ function useApplyClasses(selector, classes) {
|
|
|
48
48
|
el == null ? void 0 : el.classList.add(classes);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
const _sfc_main$
|
|
51
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
52
52
|
__name: "ResetStyles",
|
|
53
53
|
setup(__props) {
|
|
54
54
|
const { reset: reset2 } = useCssModule();
|
|
@@ -72,7 +72,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
72
72
|
const cssModules = {
|
|
73
73
|
"$style": style0$1
|
|
74
74
|
};
|
|
75
|
-
const ResetStyles = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
75
|
+
const ResetStyles = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__cssModules", cssModules]]);
|
|
76
76
|
const scrollbars = "_scrollbars_1wuqs_3";
|
|
77
77
|
const style0 = {
|
|
78
78
|
scrollbars,
|
|
@@ -1946,6 +1946,8 @@ const defaultStateFactory = () => ({});
|
|
|
1946
1946
|
const ssrState = typeof window !== "undefined" ? window.__SCALAR__ ?? defaultStateFactory() : defaultStateFactory();
|
|
1947
1947
|
const createEmptyAuthenticationState = () => ({
|
|
1948
1948
|
preferredSecurityScheme: null,
|
|
1949
|
+
// In case the spec has no security and the user would like to add some
|
|
1950
|
+
customSecurity: false,
|
|
1949
1951
|
http: {
|
|
1950
1952
|
basic: {
|
|
1951
1953
|
username: "",
|
|
@@ -1968,12 +1970,7 @@ const createEmptyAuthenticationState = () => ({
|
|
|
1968
1970
|
const authentication = reactive(
|
|
1969
1971
|
ssrState["useGlobalStore-authentication"] ?? createEmptyAuthenticationState()
|
|
1970
1972
|
);
|
|
1971
|
-
const setAuthentication = (newState) =>
|
|
1972
|
-
Object.assign(authentication, {
|
|
1973
|
-
...authentication,
|
|
1974
|
-
...newState
|
|
1975
|
-
});
|
|
1976
|
-
};
|
|
1973
|
+
const setAuthentication = (newState) => Object.assign(authentication, newState);
|
|
1977
1974
|
const useAuthenticationStore = () => ({
|
|
1978
1975
|
authentication,
|
|
1979
1976
|
setAuthentication
|
|
@@ -2862,7 +2859,7 @@ const httpStatusCodes = {
|
|
|
2862
2859
|
url: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511"
|
|
2863
2860
|
}
|
|
2864
2861
|
};
|
|
2865
|
-
const _sfc_main$
|
|
2862
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
2866
2863
|
__name: "HttpMethod",
|
|
2867
2864
|
props: {
|
|
2868
2865
|
as: {},
|
|
@@ -8826,17 +8823,17 @@ class ChangedRange {
|
|
|
8826
8823
|
return new ChangedRange(Math.min(this.fromA, other.fromA), Math.max(this.toA, other.toA), Math.min(this.fromB, other.fromB), Math.max(this.toB, other.toB));
|
|
8827
8824
|
}
|
|
8828
8825
|
addToSet(set) {
|
|
8829
|
-
let i = set.length,
|
|
8826
|
+
let i = set.length, me2 = this;
|
|
8830
8827
|
for (; i > 0; i--) {
|
|
8831
8828
|
let range = set[i - 1];
|
|
8832
|
-
if (range.fromA >
|
|
8829
|
+
if (range.fromA > me2.toA)
|
|
8833
8830
|
continue;
|
|
8834
|
-
if (range.toA <
|
|
8831
|
+
if (range.toA < me2.fromA)
|
|
8835
8832
|
break;
|
|
8836
|
-
|
|
8833
|
+
me2 = me2.join(range);
|
|
8837
8834
|
set.splice(i - 1, 1);
|
|
8838
8835
|
}
|
|
8839
|
-
set.splice(i, 0,
|
|
8836
|
+
set.splice(i, 0, me2);
|
|
8840
8837
|
return set;
|
|
8841
8838
|
}
|
|
8842
8839
|
static extendWithRanges(diff, ranges) {
|
|
@@ -10772,11 +10769,11 @@ class HeightMap {
|
|
|
10772
10769
|
result.push(this);
|
|
10773
10770
|
}
|
|
10774
10771
|
applyChanges(decorations2, oldDoc, oracle, changes) {
|
|
10775
|
-
let
|
|
10772
|
+
let me2 = this, doc2 = oracle.doc;
|
|
10776
10773
|
for (let i = changes.length - 1; i >= 0; i--) {
|
|
10777
10774
|
let { fromA, toA, fromB, toB } = changes[i];
|
|
10778
|
-
let start =
|
|
10779
|
-
let end = start.to >= toA ? start :
|
|
10775
|
+
let start = me2.lineAt(fromA, QueryType.ByPosNoHeight, oracle.setDoc(oldDoc), 0, 0);
|
|
10776
|
+
let end = start.to >= toA ? start : me2.lineAt(toA, QueryType.ByPosNoHeight, oracle, 0, 0);
|
|
10780
10777
|
toB += end.to - toA;
|
|
10781
10778
|
toA = end.to;
|
|
10782
10779
|
while (i > 0 && start.from <= changes[i - 1].toA) {
|
|
@@ -10784,14 +10781,14 @@ class HeightMap {
|
|
|
10784
10781
|
fromB = changes[i - 1].fromB;
|
|
10785
10782
|
i--;
|
|
10786
10783
|
if (fromA < start.from)
|
|
10787
|
-
start =
|
|
10784
|
+
start = me2.lineAt(fromA, QueryType.ByPosNoHeight, oracle, 0, 0);
|
|
10788
10785
|
}
|
|
10789
10786
|
fromB += start.from - fromA;
|
|
10790
10787
|
fromA = start.from;
|
|
10791
10788
|
let nodes = NodeBuilder.build(oracle.setDoc(doc2), decorations2, fromB, toB);
|
|
10792
|
-
|
|
10789
|
+
me2 = me2.replace(fromA, toA, nodes);
|
|
10793
10790
|
}
|
|
10794
|
-
return
|
|
10791
|
+
return me2.updateHeight(oracle, 0);
|
|
10795
10792
|
}
|
|
10796
10793
|
static empty() {
|
|
10797
10794
|
return new HeightMapText(0, 0);
|
|
@@ -25779,7 +25776,7 @@ function getCodeMirrorExtensions({
|
|
|
25779
25776
|
}
|
|
25780
25777
|
return extensions;
|
|
25781
25778
|
}
|
|
25782
|
-
const _sfc_main$
|
|
25779
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
25783
25780
|
__name: "CodeMirror",
|
|
25784
25781
|
props: {
|
|
25785
25782
|
content: {},
|
|
@@ -25816,9 +25813,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
25816
25813
|
};
|
|
25817
25814
|
}
|
|
25818
25815
|
});
|
|
25819
|
-
const CodeMirror = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25820
|
-
const _hoisted_1$
|
|
25821
|
-
const _sfc_main$
|
|
25816
|
+
const CodeMirror = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-9f50a430"]]);
|
|
25817
|
+
const _hoisted_1$w = { class: "scalar-modal-layout modal-layout" };
|
|
25818
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
25822
25819
|
__name: "FlowModal",
|
|
25823
25820
|
props: {
|
|
25824
25821
|
state: {},
|
|
@@ -25834,7 +25831,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
25834
25831
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.state.hide())
|
|
25835
25832
|
}, {
|
|
25836
25833
|
default: withCtx(() => [
|
|
25837
|
-
createElementVNode("div", _hoisted_1$
|
|
25834
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
25838
25835
|
createVNode(unref(DialogPanel), {
|
|
25839
25836
|
class: normalizeClass(["modal", {
|
|
25840
25837
|
"modal-content-large": _ctx.variant === "large",
|
|
@@ -25873,7 +25870,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
25873
25870
|
};
|
|
25874
25871
|
}
|
|
25875
25872
|
});
|
|
25876
|
-
const FlowModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25873
|
+
const FlowModal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-a06b8e92"]]);
|
|
25877
25874
|
const useModal = () => reactive({
|
|
25878
25875
|
open: false,
|
|
25879
25876
|
show() {
|
|
@@ -25920,7 +25917,7 @@ function getRequestFromAuthentication(authentication2, operationSecurity) {
|
|
|
25920
25917
|
const headers = [];
|
|
25921
25918
|
const queryString = [];
|
|
25922
25919
|
const cookies = [];
|
|
25923
|
-
if (!authentication2.preferredSecurityScheme || !authenticationRequired(operationSecurity)) {
|
|
25920
|
+
if (!authentication2.customSecurity && (!authentication2.preferredSecurityScheme || !authenticationRequired(operationSecurity))) {
|
|
25924
25921
|
return { headers, queryString, cookies };
|
|
25925
25922
|
}
|
|
25926
25923
|
const operationAllowsSelectedSecurityScheme = operationSecurity == null ? void 0 : operationSecurity.some(
|
|
@@ -25928,7 +25925,7 @@ function getRequestFromAuthentication(authentication2, operationSecurity) {
|
|
|
25928
25925
|
authentication2.preferredSecurityScheme
|
|
25929
25926
|
)
|
|
25930
25927
|
);
|
|
25931
|
-
const operationSecurityKey = operationAllowsSelectedSecurityScheme ? authentication2.preferredSecurityScheme : Object.keys((operationSecurity == null ? void 0 : operationSecurity[0]) ?? {}).pop();
|
|
25928
|
+
const operationSecurityKey = operationAllowsSelectedSecurityScheme || authentication2.customSecurity ? authentication2.preferredSecurityScheme : Object.keys((operationSecurity == null ? void 0 : operationSecurity[0]) ?? {}).pop();
|
|
25932
25929
|
const securityScheme = (_a2 = authentication2.securitySchemes) == null ? void 0 : _a2[operationSecurityKey ?? ""];
|
|
25933
25930
|
if (securityScheme) {
|
|
25934
25931
|
if ("type" in securityScheme && securityScheme.type === "apiKey") {
|
|
@@ -26245,10 +26242,10 @@ async function sendRequest(request, proxyUrl) {
|
|
|
26245
26242
|
responseId: nanoid()
|
|
26246
26243
|
};
|
|
26247
26244
|
}
|
|
26248
|
-
const _hoisted_1$
|
|
26249
|
-
const _hoisted_2$
|
|
26250
|
-
const _hoisted_3$
|
|
26251
|
-
const _sfc_main$
|
|
26245
|
+
const _hoisted_1$v = { class: "navtable-item-40 navtable-item-request" };
|
|
26246
|
+
const _hoisted_2$m = { class: "navtable-item-40 navtable-item-response" };
|
|
26247
|
+
const _hoisted_3$g = { class: "navtable-item-20 navtable-item-time" };
|
|
26248
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
26252
26249
|
__name: "RequestHistoryItem",
|
|
26253
26250
|
props: {
|
|
26254
26251
|
history: {}
|
|
@@ -26269,7 +26266,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
26269
26266
|
class: normalizeClass(["navtable-item", { "navtable-item__active": unref(activeRequestId2) === _ctx.history }]),
|
|
26270
26267
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(setActiveResponse2)(_ctx.history))
|
|
26271
26268
|
}, [
|
|
26272
|
-
createElementVNode("div", _hoisted_1$
|
|
26269
|
+
createElementVNode("div", _hoisted_1$v, [
|
|
26273
26270
|
createElementVNode("button", {
|
|
26274
26271
|
class: normalizeClass(["radio", unref(requestHistory2)[_ctx.history].request.type.toLowerCase()]),
|
|
26275
26272
|
type: "button"
|
|
@@ -26279,7 +26276,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
26279
26276
|
createTextVNode(" " + toDisplayString(unref(requestHistory2)[_ctx.history].request.url), 1)
|
|
26280
26277
|
])
|
|
26281
26278
|
]),
|
|
26282
|
-
createElementVNode("div", _hoisted_2$
|
|
26279
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
26283
26280
|
createElementVNode("span", null, toDisplayString(unref(prettyMilliseconds)(unref(requestHistory2)[_ctx.history].response.duration)), 1),
|
|
26284
26281
|
createElementVNode("span", {
|
|
26285
26282
|
class: normalizeClass(`scalar-api-client__status--${String(
|
|
@@ -26288,30 +26285,30 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
26288
26285
|
}, toDisplayString(unref(requestHistory2)[_ctx.history].response.statusCode), 3),
|
|
26289
26286
|
createElementVNode("span", null, toDisplayString(getContentLength(unref(requestHistory2)[_ctx.history].response)), 1)
|
|
26290
26287
|
]),
|
|
26291
|
-
createElementVNode("div", _hoisted_3$
|
|
26288
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
26292
26289
|
createElementVNode("span", null, toDisplayString(unref(humanDiff)(unref(requestHistory2)[_ctx.history].sentTime)), 1)
|
|
26293
26290
|
])
|
|
26294
26291
|
], 2);
|
|
26295
26292
|
};
|
|
26296
26293
|
}
|
|
26297
26294
|
});
|
|
26298
|
-
const RequestHistoryItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26299
|
-
const _hoisted_1$
|
|
26300
|
-
const _hoisted_2$
|
|
26301
|
-
const _hoisted_3$
|
|
26302
|
-
const _hoisted_4$
|
|
26295
|
+
const RequestHistoryItem = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-f2eb269f"]]);
|
|
26296
|
+
const _hoisted_1$u = { class: "navigation-content-item" };
|
|
26297
|
+
const _hoisted_2$l = { class: "navtable" };
|
|
26298
|
+
const _hoisted_3$f = { class: "navtable-table" };
|
|
26299
|
+
const _hoisted_4$b = /* @__PURE__ */ createStaticVNode('<div class="navtable-item navtable-item__top"><div class="navtable-item-40"><label for="">Request</label></div><div class="navtable-item-40"><label for="">Response</label></div><div class="navtable-item-20"><label for="">TIME</label></div></div>', 1);
|
|
26303
26300
|
const _hoisted_5$6 = { class: "navtable-radios" };
|
|
26304
|
-
const _hoisted_6$
|
|
26305
|
-
const _sfc_main$
|
|
26301
|
+
const _hoisted_6$3 = /* @__PURE__ */ createStaticVNode('<div class="navtable-mock"><div class="navtable-item"><div class="navtable-item-40"></div><div class="navtable-item-40"></div><div class="navtable-item-20"></div></div></div>', 1);
|
|
26302
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
26306
26303
|
__name: "RequestHistory",
|
|
26307
26304
|
emits: ["toggle"],
|
|
26308
26305
|
setup(__props) {
|
|
26309
26306
|
const { requestHistoryOrder: requestHistoryOrder2 } = useRequestStore();
|
|
26310
26307
|
return (_ctx, _cache) => {
|
|
26311
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26312
|
-
createElementVNode("div", _hoisted_2$
|
|
26313
|
-
createElementVNode("div", _hoisted_3$
|
|
26314
|
-
_hoisted_4$
|
|
26308
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
26309
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
26310
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
26311
|
+
_hoisted_4$b,
|
|
26315
26312
|
createElementVNode("div", _hoisted_5$6, [
|
|
26316
26313
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(requestHistoryOrder2), (history) => {
|
|
26317
26314
|
return openBlock(), createBlock(RequestHistoryItem, {
|
|
@@ -26320,17 +26317,17 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
26320
26317
|
}, null, 8, ["history"]);
|
|
26321
26318
|
}), 128))
|
|
26322
26319
|
]),
|
|
26323
|
-
_hoisted_6$
|
|
26320
|
+
_hoisted_6$3
|
|
26324
26321
|
])
|
|
26325
26322
|
])
|
|
26326
26323
|
]);
|
|
26327
26324
|
};
|
|
26328
26325
|
}
|
|
26329
26326
|
});
|
|
26330
|
-
const _hoisted_1$
|
|
26331
|
-
const _hoisted_2$
|
|
26332
|
-
const _hoisted_3$
|
|
26333
|
-
const _sfc_main$
|
|
26327
|
+
const _hoisted_1$t = { class: "request-method-select" };
|
|
26328
|
+
const _hoisted_2$k = ["disabled", "value"];
|
|
26329
|
+
const _hoisted_3$e = ["value"];
|
|
26330
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
26334
26331
|
__name: "RequestMethodSelect",
|
|
26335
26332
|
props: {
|
|
26336
26333
|
requestMethod: {},
|
|
@@ -26350,7 +26347,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
26350
26347
|
// 'TRACE',
|
|
26351
26348
|
];
|
|
26352
26349
|
return (_ctx, _cache) => {
|
|
26353
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26350
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
26354
26351
|
createElementVNode("span", {
|
|
26355
26352
|
class: normalizeClass(["request-method", { "request-method--disabled": _ctx.readOnly }])
|
|
26356
26353
|
}, [
|
|
@@ -26368,23 +26365,23 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
26368
26365
|
return createElementVNode("option", {
|
|
26369
26366
|
key: validRequestMethod,
|
|
26370
26367
|
value: validRequestMethod.toLocaleLowerCase()
|
|
26371
|
-
}, toDisplayString(validRequestMethod), 9, _hoisted_3$
|
|
26368
|
+
}, toDisplayString(validRequestMethod), 9, _hoisted_3$e);
|
|
26372
26369
|
}), 64))
|
|
26373
|
-
], 40, _hoisted_2$
|
|
26370
|
+
], 40, _hoisted_2$k)
|
|
26374
26371
|
]);
|
|
26375
26372
|
};
|
|
26376
26373
|
}
|
|
26377
26374
|
});
|
|
26378
|
-
const RequestMethodSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26379
|
-
const _withScopeId$
|
|
26380
|
-
const _hoisted_1$
|
|
26375
|
+
const RequestMethodSelect = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-8e2122cd"]]);
|
|
26376
|
+
const _withScopeId$5 = (n) => (pushScopeId("data-v-1fd22a00"), n = n(), popScopeId(), n);
|
|
26377
|
+
const _hoisted_1$s = {
|
|
26381
26378
|
key: 0,
|
|
26382
26379
|
class: "loader"
|
|
26383
26380
|
};
|
|
26384
|
-
const _hoisted_2$
|
|
26385
|
-
const _hoisted_3$
|
|
26386
|
-
const _hoisted_4$
|
|
26387
|
-
const _hoisted_5$5 = /* @__PURE__ */ _withScopeId$
|
|
26381
|
+
const _hoisted_2$j = { class: "url-form" };
|
|
26382
|
+
const _hoisted_3$d = { class: "url-form-field" };
|
|
26383
|
+
const _hoisted_4$a = ["disabled"];
|
|
26384
|
+
const _hoisted_5$5 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
26388
26385
|
fill: "none",
|
|
26389
26386
|
height: "48",
|
|
26390
26387
|
viewBox: "0 0 14 14",
|
|
@@ -26401,17 +26398,17 @@ const _hoisted_5$5 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ create
|
|
|
26401
26398
|
})
|
|
26402
26399
|
])
|
|
26403
26400
|
], -1));
|
|
26404
|
-
const _hoisted_6$
|
|
26405
|
-
const _hoisted_7$
|
|
26401
|
+
const _hoisted_6$2 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("span", null, "Send Request", -1));
|
|
26402
|
+
const _hoisted_7$1 = [
|
|
26406
26403
|
_hoisted_5$5,
|
|
26407
|
-
_hoisted_6$
|
|
26404
|
+
_hoisted_6$2
|
|
26408
26405
|
];
|
|
26409
|
-
const _hoisted_8$
|
|
26410
|
-
const _hoisted_9$
|
|
26406
|
+
const _hoisted_8$1 = { class: "address-bar-content" };
|
|
26407
|
+
const _hoisted_9$1 = {
|
|
26411
26408
|
key: 0,
|
|
26412
26409
|
class: "history"
|
|
26413
26410
|
};
|
|
26414
|
-
const _hoisted_10
|
|
26411
|
+
const _hoisted_10 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
26415
26412
|
fill: "none",
|
|
26416
26413
|
height: "48",
|
|
26417
26414
|
viewBox: "0 0 14 14",
|
|
@@ -26435,7 +26432,7 @@ const _hoisted_10$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ creat
|
|
|
26435
26432
|
})
|
|
26436
26433
|
])
|
|
26437
26434
|
], -1));
|
|
26438
|
-
const _sfc_main$
|
|
26435
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
26439
26436
|
__name: "AddressBar",
|
|
26440
26437
|
props: {
|
|
26441
26438
|
proxyUrl: {}
|
|
@@ -26498,12 +26495,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
26498
26495
|
};
|
|
26499
26496
|
return (_ctx, _cache) => {
|
|
26500
26497
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
26501
|
-
loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
26498
|
+
loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$s)) : createCommentVNode("", true),
|
|
26502
26499
|
createElementVNode("div", {
|
|
26503
26500
|
class: normalizeClass(["address-bar", { "address-bar--with-history": showHistory.value }])
|
|
26504
26501
|
}, [
|
|
26505
|
-
createElementVNode("div", _hoisted_2$
|
|
26506
|
-
createElementVNode("div", _hoisted_3$
|
|
26502
|
+
createElementVNode("div", _hoisted_2$j, [
|
|
26503
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
26507
26504
|
createVNode(RequestMethodSelect, {
|
|
26508
26505
|
readOnly: unref(readOnly2),
|
|
26509
26506
|
requestMethod: requestType.value,
|
|
@@ -26524,20 +26521,20 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
26524
26521
|
disabled: !formattedUrl.value.trim().length,
|
|
26525
26522
|
type: "submit",
|
|
26526
26523
|
onClick: send
|
|
26527
|
-
}, _hoisted_7$
|
|
26524
|
+
}, _hoisted_7$1, 8, _hoisted_4$a)
|
|
26528
26525
|
]),
|
|
26529
26526
|
createElementVNode("div", {
|
|
26530
26527
|
class: "address-bar-close",
|
|
26531
26528
|
onClick: _cache[0] || (_cache[0] = ($event) => showHistory.value = false)
|
|
26532
26529
|
}),
|
|
26533
|
-
createElementVNode("div", _hoisted_8$
|
|
26530
|
+
createElementVNode("div", _hoisted_8$1, [
|
|
26534
26531
|
createVNode(unref(FlowModal), {
|
|
26535
26532
|
state: unref(historyModal),
|
|
26536
26533
|
title: "Request History",
|
|
26537
26534
|
variant: "history"
|
|
26538
26535
|
}, {
|
|
26539
26536
|
default: withCtx(() => [
|
|
26540
|
-
createVNode(_sfc_main$
|
|
26537
|
+
createVNode(_sfc_main$y, {
|
|
26541
26538
|
showHistory: showHistory.value,
|
|
26542
26539
|
onToggle: _cache[1] || (_cache[1] = ($event) => showHistory.value = !showHistory.value)
|
|
26543
26540
|
}, null, 8, ["showHistory"])
|
|
@@ -26545,12 +26542,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
26545
26542
|
_: 1
|
|
26546
26543
|
}, 8, ["state"])
|
|
26547
26544
|
]),
|
|
26548
|
-
unref(requestHistoryOrder2).length ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
26545
|
+
unref(requestHistoryOrder2).length ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
|
|
26549
26546
|
createElementVNode("div", {
|
|
26550
26547
|
class: "history-toggle",
|
|
26551
26548
|
onClick: _cache[2] || (_cache[2] = ($event) => unref(historyModal).show())
|
|
26552
26549
|
}, [
|
|
26553
|
-
_hoisted_10
|
|
26550
|
+
_hoisted_10,
|
|
26554
26551
|
createElementVNode("span", null, toDisplayString(lastRequestTimestamp.value), 1)
|
|
26555
26552
|
])
|
|
26556
26553
|
])) : createCommentVNode("", true)
|
|
@@ -26559,9 +26556,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
26559
26556
|
};
|
|
26560
26557
|
}
|
|
26561
26558
|
});
|
|
26562
|
-
const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26559
|
+
const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-1fd22a00"]]);
|
|
26563
26560
|
const clickGeneratedParameter = useEventBus(Symbol());
|
|
26564
|
-
const _hoisted_1$
|
|
26561
|
+
const _hoisted_1$r = /* @__PURE__ */ createElementVNode("svg", {
|
|
26565
26562
|
class: "scalar-api-client__toggle__icon",
|
|
26566
26563
|
height: "10",
|
|
26567
26564
|
viewBox: "0 0 5 10",
|
|
@@ -26574,13 +26571,13 @@ const _hoisted_1$n = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
26574
26571
|
"fill-rule": "nonzero"
|
|
26575
26572
|
})
|
|
26576
26573
|
], -1);
|
|
26577
|
-
const _hoisted_2$
|
|
26578
|
-
const _hoisted_3$
|
|
26574
|
+
const _hoisted_2$i = { class: "scalar-api-client__item__title" };
|
|
26575
|
+
const _hoisted_3$c = {
|
|
26579
26576
|
key: 0,
|
|
26580
26577
|
class: "scalar-api-client__item__options"
|
|
26581
26578
|
};
|
|
26582
|
-
const _hoisted_4$
|
|
26583
|
-
const _sfc_main$
|
|
26579
|
+
const _hoisted_4$9 = { class: "scalar-api-client__item__content" };
|
|
26580
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
26584
26581
|
__name: "CollapsibleSection",
|
|
26585
26582
|
props: {
|
|
26586
26583
|
title: {},
|
|
@@ -26617,9 +26614,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
26617
26614
|
onClick: _cache[0] || (_cache[0] = ($event) => openCopy.value = !openCopy.value)
|
|
26618
26615
|
}, {
|
|
26619
26616
|
default: withCtx(() => [
|
|
26620
|
-
_hoisted_1$
|
|
26621
|
-
createElementVNode("span", _hoisted_2$
|
|
26622
|
-
_ctx.$slots.options && open ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
26617
|
+
_hoisted_1$r,
|
|
26618
|
+
createElementVNode("span", _hoisted_2$i, toDisplayString(_ctx.title), 1),
|
|
26619
|
+
_ctx.$slots.options && open ? (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
26623
26620
|
renderSlot(_ctx.$slots, "options")
|
|
26624
26621
|
])) : createCommentVNode("", true)
|
|
26625
26622
|
]),
|
|
@@ -26627,7 +26624,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
26627
26624
|
}, 1536),
|
|
26628
26625
|
createVNode(unref(DisclosurePanel), null, {
|
|
26629
26626
|
default: withCtx(() => [
|
|
26630
|
-
createElementVNode("div", _hoisted_4$
|
|
26627
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
26631
26628
|
renderSlot(_ctx.$slots, "default")
|
|
26632
26629
|
])
|
|
26633
26630
|
]),
|
|
@@ -26640,15 +26637,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
26640
26637
|
};
|
|
26641
26638
|
}
|
|
26642
26639
|
});
|
|
26643
|
-
const _sfc_main$
|
|
26644
|
-
const _hoisted_1$
|
|
26640
|
+
const _sfc_main$u = {};
|
|
26641
|
+
const _hoisted_1$q = { class: "card-form" };
|
|
26645
26642
|
function _sfc_render$4(_ctx, _cache) {
|
|
26646
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26643
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
26647
26644
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
26648
26645
|
]);
|
|
26649
26646
|
}
|
|
26650
|
-
const CardForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26651
|
-
const _sfc_main$
|
|
26647
|
+
const CardForm = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$4], ["__scopeId", "data-v-023a41cb"]]);
|
|
26648
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
26652
26649
|
__name: "CardFormButton",
|
|
26653
26650
|
setup(__props, { expose: __expose }) {
|
|
26654
26651
|
const el = ref();
|
|
@@ -26665,19 +26662,19 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
26665
26662
|
};
|
|
26666
26663
|
}
|
|
26667
26664
|
});
|
|
26668
|
-
const CardFormButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26669
|
-
const _sfc_main$
|
|
26670
|
-
const _hoisted_1$
|
|
26665
|
+
const CardFormButton = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-a37cd1cb"]]);
|
|
26666
|
+
const _sfc_main$s = {};
|
|
26667
|
+
const _hoisted_1$p = { class: "card-form-group" };
|
|
26671
26668
|
function _sfc_render$3(_ctx, _cache) {
|
|
26672
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26669
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
26673
26670
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
26674
26671
|
]);
|
|
26675
26672
|
}
|
|
26676
|
-
const CardFormGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26677
|
-
const _hoisted_1$
|
|
26678
|
-
const _hoisted_2$
|
|
26679
|
-
const _hoisted_3$
|
|
26680
|
-
const _sfc_main$
|
|
26673
|
+
const CardFormGroup = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$3], ["__scopeId", "data-v-d2f0b9a0"]]);
|
|
26674
|
+
const _hoisted_1$o = { class: "card-form-input" };
|
|
26675
|
+
const _hoisted_2$h = ["for"];
|
|
26676
|
+
const _hoisted_3$b = ["id", "type"];
|
|
26677
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
26681
26678
|
...{
|
|
26682
26679
|
inheritAttrs: false
|
|
26683
26680
|
},
|
|
@@ -26688,21 +26685,21 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
26688
26685
|
},
|
|
26689
26686
|
setup(__props) {
|
|
26690
26687
|
return (_ctx, _cache) => {
|
|
26691
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26688
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
26692
26689
|
createElementVNode("label", { for: _ctx.id }, [
|
|
26693
26690
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
26694
|
-
], 8, _hoisted_2$
|
|
26691
|
+
], 8, _hoisted_2$h),
|
|
26695
26692
|
createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
26696
26693
|
id: _ctx.id,
|
|
26697
26694
|
autocomplete: "off",
|
|
26698
26695
|
spellcheck: "false",
|
|
26699
26696
|
type: _ctx.type ?? "text"
|
|
26700
|
-
}), null, 16, _hoisted_3$
|
|
26697
|
+
}), null, 16, _hoisted_3$b)
|
|
26701
26698
|
]);
|
|
26702
26699
|
};
|
|
26703
26700
|
}
|
|
26704
26701
|
});
|
|
26705
|
-
const CardFormTextInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26702
|
+
const CardFormTextInput = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-f2db736f"]]);
|
|
26706
26703
|
function r(e) {
|
|
26707
26704
|
var t2, f, n = "";
|
|
26708
26705
|
if ("string" == typeof e || "number" == typeof e)
|
|
@@ -30769,15 +30766,61 @@ const O = "scalar-component", le = extendTailwindMerge({
|
|
|
30769
30766
|
hooks: {
|
|
30770
30767
|
onComplete: (r2) => `${le(r2, O)}`
|
|
30771
30768
|
}
|
|
30772
|
-
})
|
|
30773
|
-
|
|
30769
|
+
}), de = /* @__PURE__ */ createStaticVNode('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-42a08e16></path>', 5), ce = {
|
|
30770
|
+
key: 0,
|
|
30771
|
+
class: "circular-loader"
|
|
30772
|
+
};
|
|
30773
|
+
const ue = /* @__PURE__ */ defineComponent({
|
|
30774
|
+
__name: "ScalarLoading",
|
|
30775
|
+
props: {
|
|
30776
|
+
loadingState: {},
|
|
30777
|
+
size: { default: "24px" }
|
|
30778
|
+
},
|
|
30779
|
+
setup(r2) {
|
|
30780
|
+
return useCssVars((t2) => ({
|
|
30781
|
+
"8d3a1414": t2.size
|
|
30782
|
+
})), (t2, e) => t2.loadingState ? (openBlock(), createElementBlock("div", {
|
|
30783
|
+
key: 0,
|
|
30784
|
+
class: normalizeClass(unref(S)("loader-wrapper"))
|
|
30785
|
+
}, [
|
|
30786
|
+
(openBlock(), createElementBlock("svg", {
|
|
30787
|
+
class: normalizeClass(["svg-loader", {
|
|
30788
|
+
"icon-is-valid": t2.loadingState.isValid,
|
|
30789
|
+
"icon-is-invalid": t2.loadingState.isInvalid
|
|
30790
|
+
}]),
|
|
30791
|
+
viewBox: "0 0 100 100",
|
|
30792
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30793
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
30794
|
+
}, [
|
|
30795
|
+
de,
|
|
30796
|
+
t2.loadingState.isLoading ? (openBlock(), createElementBlock("g", ce, [
|
|
30797
|
+
createElementVNode("circle", {
|
|
30798
|
+
class: normalizeClass(["loader-path", {
|
|
30799
|
+
"loader-path-off": t2.loadingState.isValid || t2.loadingState.isInvalid
|
|
30800
|
+
}]),
|
|
30801
|
+
cx: "50",
|
|
30802
|
+
cy: "50",
|
|
30803
|
+
fill: "none",
|
|
30804
|
+
r: "20",
|
|
30805
|
+
"stroke-width": "2"
|
|
30806
|
+
}, null, 2)
|
|
30807
|
+
])) : createCommentVNode("", true)
|
|
30808
|
+
], 2))
|
|
30809
|
+
], 2)) : createCommentVNode("", true);
|
|
30810
|
+
}
|
|
30811
|
+
}), D = (r2, t2) => {
|
|
30812
|
+
const e = r2.__vccOpts || r2;
|
|
30813
|
+
for (const [d, u] of t2)
|
|
30814
|
+
e[d] = u;
|
|
30815
|
+
return e;
|
|
30816
|
+
}, U = /* @__PURE__ */ D(ue, [["__scopeId", "data-v-42a08e16"]]), V = {
|
|
30774
30817
|
solid: [
|
|
30775
30818
|
"scalar-button-solid",
|
|
30776
30819
|
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
30777
30820
|
],
|
|
30778
30821
|
outlined: [
|
|
30779
30822
|
"scalar-button-outlined",
|
|
30780
|
-
"active:bg-btn-1 border border-solid border-border bg-transparent text-fore-1 hocus:bg-
|
|
30823
|
+
"active:bg-btn-1 border border-solid border-border bg-transparent text-fore-1 hocus:bg-border"
|
|
30781
30824
|
],
|
|
30782
30825
|
ghost: [
|
|
30783
30826
|
"scalar-button-ghost",
|
|
@@ -30787,8 +30830,7 @@ const V = {
|
|
|
30787
30830
|
"scalar-button-danger",
|
|
30788
30831
|
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
30789
30832
|
]
|
|
30790
|
-
}
|
|
30791
|
-
I({
|
|
30833
|
+
}, pe = I({
|
|
30792
30834
|
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
30793
30835
|
variants: {
|
|
30794
30836
|
disabled: {
|
|
@@ -30805,6 +30847,48 @@ I({
|
|
|
30805
30847
|
class: "bg-transparent text-ghost"
|
|
30806
30848
|
}
|
|
30807
30849
|
]
|
|
30850
|
+
}), me = ["ariaDisabled"], ge = {
|
|
30851
|
+
key: 0,
|
|
30852
|
+
class: "mr-2 h-4 w-4"
|
|
30853
|
+
}, he = {
|
|
30854
|
+
key: 1,
|
|
30855
|
+
class: "ml-2"
|
|
30856
|
+
}, fe = /* @__PURE__ */ defineComponent({
|
|
30857
|
+
inheritAttrs: false,
|
|
30858
|
+
__name: "ScalarButton",
|
|
30859
|
+
props: {
|
|
30860
|
+
disabled: { type: Boolean },
|
|
30861
|
+
fullWidth: { type: Boolean, default: false },
|
|
30862
|
+
loading: {},
|
|
30863
|
+
size: { default: "md" },
|
|
30864
|
+
variant: { default: "solid" }
|
|
30865
|
+
},
|
|
30866
|
+
setup(r2) {
|
|
30867
|
+
const t2 = computed(() => {
|
|
30868
|
+
const { class: e, ...d } = useAttrs();
|
|
30869
|
+
return { className: e || "", rest: d };
|
|
30870
|
+
});
|
|
30871
|
+
return (e, d) => (openBlock(), createElementBlock("button", mergeProps(t2.value.rest, {
|
|
30872
|
+
ariaDisabled: e.disabled || void 0,
|
|
30873
|
+
class: unref(S)(
|
|
30874
|
+
unref(pe)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
|
|
30875
|
+
{ "pl-9 pr-3": e.loading },
|
|
30876
|
+
`${t2.value.className}`
|
|
30877
|
+
),
|
|
30878
|
+
type: "button"
|
|
30879
|
+
}), [
|
|
30880
|
+
e.$slots.icon ? (openBlock(), createElementBlock("div", ge, [
|
|
30881
|
+
renderSlot(e.$slots, "icon")
|
|
30882
|
+
])) : createCommentVNode("", true),
|
|
30883
|
+
renderSlot(e.$slots, "default"),
|
|
30884
|
+
e.loading ? (openBlock(), createElementBlock("div", he, [
|
|
30885
|
+
createVNode(unref(U), {
|
|
30886
|
+
loadingState: e.loading,
|
|
30887
|
+
size: "20px"
|
|
30888
|
+
}, null, 8, ["loadingState"])
|
|
30889
|
+
])) : createCommentVNode("", true)
|
|
30890
|
+
], 16, me));
|
|
30891
|
+
}
|
|
30808
30892
|
});
|
|
30809
30893
|
(function(r2) {
|
|
30810
30894
|
var t2 = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", e = {
|
|
@@ -31264,21 +31348,21 @@ const ve = ["innerHTML"], He = /* @__PURE__ */ defineComponent({
|
|
|
31264
31348
|
}, null, 8, be));
|
|
31265
31349
|
}
|
|
31266
31350
|
});
|
|
31267
|
-
const _sfc_main$
|
|
31268
|
-
const _hoisted_1$
|
|
31351
|
+
const _sfc_main$q = {};
|
|
31352
|
+
const _hoisted_1$n = { class: "badge" };
|
|
31269
31353
|
function _sfc_render$2(_ctx, _cache) {
|
|
31270
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31354
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
31271
31355
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
31272
31356
|
]);
|
|
31273
31357
|
}
|
|
31274
|
-
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31275
|
-
const _withScopeId$
|
|
31276
|
-
const _hoisted_1$
|
|
31277
|
-
const _hoisted_2$
|
|
31278
|
-
const _hoisted_3$
|
|
31279
|
-
const _hoisted_4$
|
|
31358
|
+
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$2], ["__scopeId", "data-v-08c68ac3"]]);
|
|
31359
|
+
const _withScopeId$4 = (n) => (pushScopeId("data-v-2c61ed69"), n = n(), popScopeId(), n);
|
|
31360
|
+
const _hoisted_1$m = { class: "scopes-label" };
|
|
31361
|
+
const _hoisted_2$g = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("em", null, "|", -1));
|
|
31362
|
+
const _hoisted_3$a = ["checked"];
|
|
31363
|
+
const _hoisted_4$8 = { class: "dropdown-item-title" };
|
|
31280
31364
|
const _hoisted_5$4 = { class: "dropdown-item-description" };
|
|
31281
|
-
const _sfc_main$
|
|
31365
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
31282
31366
|
__name: "SecuritySchemeScopes",
|
|
31283
31367
|
props: {
|
|
31284
31368
|
scopes: {},
|
|
@@ -31313,7 +31397,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
31313
31397
|
}, [
|
|
31314
31398
|
createVNode(unref(ListboxButton), { as: CardFormButton }, {
|
|
31315
31399
|
default: withCtx(() => [
|
|
31316
|
-
createElementVNode("div", _hoisted_1$
|
|
31400
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
31317
31401
|
createVNode(unref(j), {
|
|
31318
31402
|
icon: open ? "ChevronUp" : "ChevronDown",
|
|
31319
31403
|
size: "sm"
|
|
@@ -31322,7 +31406,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
31322
31406
|
createVNode(unref(Badge), { class: "scopes-label-badge" }, {
|
|
31323
31407
|
default: withCtx(() => [
|
|
31324
31408
|
createTextVNode(toDisplayString(model.value.length), 1),
|
|
31325
|
-
_hoisted_2$
|
|
31409
|
+
_hoisted_2$g,
|
|
31326
31410
|
createTextVNode(toDisplayString(Object.entries(_ctx.scopes).length), 1)
|
|
31327
31411
|
]),
|
|
31328
31412
|
_: 1
|
|
@@ -31359,8 +31443,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
31359
31443
|
class: "dropdown-item-check",
|
|
31360
31444
|
tabindex: "-1",
|
|
31361
31445
|
type: "checkbox"
|
|
31362
|
-
}, null, 8, _hoisted_3$
|
|
31363
|
-
createElementVNode("dt", _hoisted_4$
|
|
31446
|
+
}, null, 8, _hoisted_3$a),
|
|
31447
|
+
createElementVNode("dt", _hoisted_4$8, toDisplayString(key), 1),
|
|
31364
31448
|
createElementVNode("dd", _hoisted_5$4, toDisplayString(description), 1)
|
|
31365
31449
|
]),
|
|
31366
31450
|
_: 2
|
|
@@ -31380,8 +31464,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
31380
31464
|
};
|
|
31381
31465
|
}
|
|
31382
31466
|
});
|
|
31383
|
-
const SecuritySchemeScopes = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31384
|
-
const _sfc_main$
|
|
31467
|
+
const SecuritySchemeScopes = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-2c61ed69"]]);
|
|
31468
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
31385
31469
|
__name: "SecurityScheme",
|
|
31386
31470
|
props: {
|
|
31387
31471
|
value: {}
|
|
@@ -31609,16 +31693,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
31609
31693
|
};
|
|
31610
31694
|
}
|
|
31611
31695
|
});
|
|
31612
|
-
const SecurityScheme = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31613
|
-
const _withScopeId = (n) => (pushScopeId("data-v-a4771f77"), n = n(), popScopeId(), n);
|
|
31614
|
-
const _hoisted_1$
|
|
31696
|
+
const SecurityScheme = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-5782f5ce"]]);
|
|
31697
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-a4771f77"), n = n(), popScopeId(), n);
|
|
31698
|
+
const _hoisted_1$l = {
|
|
31615
31699
|
key: 1,
|
|
31616
31700
|
class: "security-scheme-selector"
|
|
31617
31701
|
};
|
|
31618
|
-
const _hoisted_2$
|
|
31619
|
-
const _hoisted_3$
|
|
31620
|
-
const _hoisted_4$
|
|
31621
|
-
const _sfc_main$
|
|
31702
|
+
const _hoisted_2$f = ["value"];
|
|
31703
|
+
const _hoisted_3$9 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("option", { value: "" }, "None", -1));
|
|
31704
|
+
const _hoisted_4$7 = ["value"];
|
|
31705
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
31622
31706
|
__name: "SecuritySchemeSelector",
|
|
31623
31707
|
props: {
|
|
31624
31708
|
value: {}
|
|
@@ -31673,7 +31757,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
31673
31757
|
var _a2, _b;
|
|
31674
31758
|
return keys.value.length === 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
31675
31759
|
createTextVNode(toDisplayString(getLabelForScheme((_a2 = _ctx.value) == null ? void 0 : _a2[keys.value[0]], keys.value[0])), 1)
|
|
31676
|
-
], 64)) : keys.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31760
|
+
], 64)) : keys.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
31677
31761
|
createElementVNode("span", null, toDisplayString(unref(authentication2).preferredSecurityScheme ? getLabelForScheme(
|
|
31678
31762
|
(_b = _ctx.value) == null ? void 0 : _b[unref(authentication2).preferredSecurityScheme],
|
|
31679
31763
|
unref(authentication2).preferredSecurityScheme
|
|
@@ -31685,25 +31769,29 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
31685
31769
|
}, ["prevent"])),
|
|
31686
31770
|
onInput: handleAuthenticationTypeInput
|
|
31687
31771
|
}, [
|
|
31688
|
-
_hoisted_3$
|
|
31772
|
+
_hoisted_3$9,
|
|
31689
31773
|
(openBlock(true), createElementBlock(Fragment, null, renderList(keys.value, (key) => {
|
|
31690
31774
|
var _a3;
|
|
31691
31775
|
return openBlock(), createElementBlock("option", {
|
|
31692
31776
|
key,
|
|
31693
31777
|
value: key ?? null
|
|
31694
|
-
}, toDisplayString(getLabelForScheme((_a3 = _ctx.value) == null ? void 0 : _a3[key], key)), 9, _hoisted_4$
|
|
31778
|
+
}, toDisplayString(getLabelForScheme((_a3 = _ctx.value) == null ? void 0 : _a3[key], key)), 9, _hoisted_4$7);
|
|
31695
31779
|
}), 128))
|
|
31696
|
-
], 40, _hoisted_2$
|
|
31780
|
+
], 40, _hoisted_2$f)
|
|
31697
31781
|
])) : createCommentVNode("", true);
|
|
31698
31782
|
};
|
|
31699
31783
|
}
|
|
31700
31784
|
});
|
|
31701
|
-
const SecuritySchemeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31702
|
-
const _hoisted_1$
|
|
31785
|
+
const SecuritySchemeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-a4771f77"]]);
|
|
31786
|
+
const _hoisted_1$k = {
|
|
31703
31787
|
key: 0,
|
|
31704
31788
|
class: "preferred-security-scheme"
|
|
31705
31789
|
};
|
|
31706
|
-
const
|
|
31790
|
+
const _hoisted_2$e = {
|
|
31791
|
+
key: 1,
|
|
31792
|
+
class: "security-scheme-empty-state"
|
|
31793
|
+
};
|
|
31794
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
31707
31795
|
__name: "RequestAuthentication",
|
|
31708
31796
|
setup(__props) {
|
|
31709
31797
|
const requestAuthenticationRef = ref(null);
|
|
@@ -31717,13 +31805,25 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31717
31805
|
block: "center"
|
|
31718
31806
|
});
|
|
31719
31807
|
});
|
|
31720
|
-
const { authentication: authentication2 } = useAuthenticationStore();
|
|
31808
|
+
const { authentication: authentication2, setAuthentication: setAuthentication2 } = useAuthenticationStore();
|
|
31809
|
+
const setIntialScheme = (preferredSecurityScheme) => {
|
|
31810
|
+
setAuthentication2({
|
|
31811
|
+
customSecurity: true,
|
|
31812
|
+
preferredSecurityScheme,
|
|
31813
|
+
securitySchemes: {
|
|
31814
|
+
apiKey: { type: "apiKey", name: "apiKey", in: "header" },
|
|
31815
|
+
httpBasic: { type: "http", scheme: "basic" },
|
|
31816
|
+
httpBearer: { type: "http", scheme: "bearer" }
|
|
31817
|
+
// TODO oauth2
|
|
31818
|
+
}
|
|
31819
|
+
});
|
|
31820
|
+
};
|
|
31721
31821
|
return (_ctx, _cache) => {
|
|
31722
31822
|
return openBlock(), createElementBlock("div", {
|
|
31723
31823
|
ref_key: "requestAuthenticationRef",
|
|
31724
31824
|
ref: requestAuthenticationRef
|
|
31725
31825
|
}, [
|
|
31726
|
-
createVNode(unref(_sfc_main$
|
|
31826
|
+
createVNode(unref(_sfc_main$v), { title: "Authentication" }, {
|
|
31727
31827
|
options: withCtx(() => [
|
|
31728
31828
|
createVNode(SecuritySchemeSelector, {
|
|
31729
31829
|
value: unref(authentication2).securitySchemes
|
|
@@ -31732,10 +31832,27 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31732
31832
|
default: withCtx(() => {
|
|
31733
31833
|
var _a2;
|
|
31734
31834
|
return [
|
|
31735
|
-
unref(authentication2).preferredSecurityScheme ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31835
|
+
unref(authentication2).preferredSecurityScheme ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
31736
31836
|
createVNode(SecurityScheme, {
|
|
31737
31837
|
value: (_a2 = unref(authentication2).securitySchemes) == null ? void 0 : _a2[unref(authentication2).preferredSecurityScheme]
|
|
31738
31838
|
}, null, 8, ["value"])
|
|
31839
|
+
])) : createCommentVNode("", true),
|
|
31840
|
+
!unref(authentication2).securitySchemes ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
|
|
31841
|
+
createElementVNode("div", {
|
|
31842
|
+
class: "scalar-api-client-add",
|
|
31843
|
+
variant: "outlined",
|
|
31844
|
+
onClick: _cache[0] || (_cache[0] = ($event) => setIntialScheme("apiKey"))
|
|
31845
|
+
}, " ApiKey "),
|
|
31846
|
+
createElementVNode("div", {
|
|
31847
|
+
class: "scalar-api-client-add",
|
|
31848
|
+
variant: "outlined",
|
|
31849
|
+
onClick: _cache[1] || (_cache[1] = ($event) => setIntialScheme("httpBasic"))
|
|
31850
|
+
}, " Basic "),
|
|
31851
|
+
createElementVNode("div", {
|
|
31852
|
+
class: "scalar-api-client-add",
|
|
31853
|
+
variant: "outlined",
|
|
31854
|
+
onClick: _cache[2] || (_cache[2] = ($event) => setIntialScheme("httpBearer"))
|
|
31855
|
+
}, " Bearer ")
|
|
31739
31856
|
])) : createCommentVNode("", true)
|
|
31740
31857
|
];
|
|
31741
31858
|
}),
|
|
@@ -31745,21 +31862,45 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31745
31862
|
};
|
|
31746
31863
|
}
|
|
31747
31864
|
});
|
|
31748
|
-
const RequestAuthentication = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31749
|
-
const _hoisted_1$
|
|
31750
|
-
const _hoisted_2$
|
|
31751
|
-
const _hoisted_3$
|
|
31752
|
-
|
|
31753
|
-
|
|
31754
|
-
|
|
31755
|
-
|
|
31756
|
-
|
|
31757
|
-
const
|
|
31758
|
-
|
|
31759
|
-
|
|
31760
|
-
|
|
31761
|
-
|
|
31762
|
-
|
|
31865
|
+
const RequestAuthentication = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-a631f3fe"]]);
|
|
31866
|
+
const _hoisted_1$j = { class: "table-row" };
|
|
31867
|
+
const _hoisted_2$d = { class: "table-row-item" };
|
|
31868
|
+
const _hoisted_3$8 = { class: "table-row-item" };
|
|
31869
|
+
const _hoisted_4$6 = {
|
|
31870
|
+
key: 0,
|
|
31871
|
+
class: "table-row-item"
|
|
31872
|
+
};
|
|
31873
|
+
const _hoisted_5$3 = { class: "table-row-meta" };
|
|
31874
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
31875
|
+
__name: "GridRow",
|
|
31876
|
+
props: {
|
|
31877
|
+
showDescription: { type: Boolean }
|
|
31878
|
+
},
|
|
31879
|
+
setup(__props) {
|
|
31880
|
+
return (_ctx, _cache) => {
|
|
31881
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
31882
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
31883
|
+
renderSlot(_ctx.$slots, "key", {}, void 0, true)
|
|
31884
|
+
]),
|
|
31885
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
31886
|
+
renderSlot(_ctx.$slots, "value", {}, void 0, true)
|
|
31887
|
+
]),
|
|
31888
|
+
_ctx.showDescription ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
|
|
31889
|
+
renderSlot(_ctx.$slots, "description", {}, void 0, true)
|
|
31890
|
+
])) : createCommentVNode("", true),
|
|
31891
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
31892
|
+
renderSlot(_ctx.$slots, "meta", {}, void 0, true)
|
|
31893
|
+
])
|
|
31894
|
+
]);
|
|
31895
|
+
};
|
|
31896
|
+
}
|
|
31897
|
+
});
|
|
31898
|
+
const GridRow = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-9976f8d1"]]);
|
|
31899
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-6c18e92d"), n = n(), popScopeId(), n);
|
|
31900
|
+
const _hoisted_1$i = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("label", { class: "table-column-header" }, "Key", -1));
|
|
31901
|
+
const _hoisted_2$c = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("label", { class: "table-column-header" }, "Value", -1));
|
|
31902
|
+
const _hoisted_3$7 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("label", { class: "table-column-header" }, "Description", -1));
|
|
31903
|
+
const _hoisted_4$5 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
31763
31904
|
fill: "currentColor",
|
|
31764
31905
|
height: "12",
|
|
31765
31906
|
viewBox: "0 0 18 12",
|
|
@@ -31770,35 +31911,47 @@ const _hoisted_8$1 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
31770
31911
|
d: "M0 12h12v-2H0v2zM0 0v2h18V0H0zm0 7h18V5H0v2z",
|
|
31771
31912
|
"fill-rule": "nonzero"
|
|
31772
31913
|
})
|
|
31773
|
-
], -1);
|
|
31774
|
-
const
|
|
31775
|
-
|
|
31776
|
-
|
|
31777
|
-
|
|
31778
|
-
|
|
31779
|
-
|
|
31780
|
-
|
|
31781
|
-
|
|
31782
|
-
|
|
31783
|
-
|
|
31784
|
-
|
|
31785
|
-
|
|
31786
|
-
|
|
31787
|
-
|
|
31788
|
-
]
|
|
31789
|
-
|
|
31790
|
-
|
|
31791
|
-
|
|
31792
|
-
|
|
31793
|
-
|
|
31794
|
-
|
|
31795
|
-
|
|
31796
|
-
|
|
31797
|
-
|
|
31798
|
-
|
|
31799
|
-
|
|
31800
|
-
|
|
31801
|
-
|
|
31914
|
+
], -1));
|
|
31915
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
31916
|
+
__name: "GridHeader",
|
|
31917
|
+
props: {
|
|
31918
|
+
showDescription: { type: Boolean }
|
|
31919
|
+
},
|
|
31920
|
+
emits: ["update:showDescription"],
|
|
31921
|
+
setup(__props) {
|
|
31922
|
+
return (_ctx, _cache) => {
|
|
31923
|
+
return openBlock(), createBlock(GridRow, { showDescription: _ctx.showDescription }, {
|
|
31924
|
+
key: withCtx(() => [
|
|
31925
|
+
_hoisted_1$i
|
|
31926
|
+
]),
|
|
31927
|
+
value: withCtx(() => [
|
|
31928
|
+
_hoisted_2$c
|
|
31929
|
+
]),
|
|
31930
|
+
description: withCtx(() => [
|
|
31931
|
+
_hoisted_3$7
|
|
31932
|
+
]),
|
|
31933
|
+
meta: withCtx(() => [
|
|
31934
|
+
createVNode(unref(fe), {
|
|
31935
|
+
class: "table-description-toggle",
|
|
31936
|
+
variant: "text",
|
|
31937
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:showDescription", !_ctx.showDescription))
|
|
31938
|
+
}, {
|
|
31939
|
+
default: withCtx(() => [
|
|
31940
|
+
_hoisted_4$5
|
|
31941
|
+
]),
|
|
31942
|
+
_: 1
|
|
31943
|
+
})
|
|
31944
|
+
]),
|
|
31945
|
+
_: 1
|
|
31946
|
+
}, 8, ["showDescription"]);
|
|
31947
|
+
};
|
|
31948
|
+
}
|
|
31949
|
+
});
|
|
31950
|
+
const GridHeader = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-6c18e92d"]]);
|
|
31951
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-1cd9d274"), n = n(), popScopeId(), n);
|
|
31952
|
+
const _hoisted_1$h = { class: "meta-check" };
|
|
31953
|
+
const _hoisted_2$b = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "meta-checkmark" }, null, -1));
|
|
31954
|
+
const _hoisted_3$6 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
31802
31955
|
fill: "none",
|
|
31803
31956
|
height: "10",
|
|
31804
31957
|
viewBox: "-0.5 -0.5 10 10",
|
|
@@ -31819,13 +31972,139 @@ const _hoisted_29 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
31819
31972
|
"stroke-linejoin": "round",
|
|
31820
31973
|
"stroke-width": "1.5"
|
|
31821
31974
|
})
|
|
31822
|
-
], -1);
|
|
31823
|
-
const
|
|
31824
|
-
|
|
31975
|
+
], -1));
|
|
31976
|
+
const _hoisted_4$4 = [
|
|
31977
|
+
_hoisted_3$6
|
|
31825
31978
|
];
|
|
31826
|
-
const
|
|
31827
|
-
|
|
31828
|
-
|
|
31979
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
31980
|
+
__name: "GridRowEditable",
|
|
31981
|
+
props: {
|
|
31982
|
+
name: {},
|
|
31983
|
+
description: {},
|
|
31984
|
+
value: {},
|
|
31985
|
+
required: { type: Boolean },
|
|
31986
|
+
enabled: { type: Boolean }
|
|
31987
|
+
},
|
|
31988
|
+
emits: ["update:name", "update:value", "update:description", "update:enabled", "delete"],
|
|
31989
|
+
setup(__props, { emit: __emit }) {
|
|
31990
|
+
const props = __props;
|
|
31991
|
+
const emit = __emit;
|
|
31992
|
+
const nameProxy = computed({
|
|
31993
|
+
get: () => props.name,
|
|
31994
|
+
set: (v) => {
|
|
31995
|
+
emit("update:enabled", true);
|
|
31996
|
+
emit("update:name", v);
|
|
31997
|
+
}
|
|
31998
|
+
});
|
|
31999
|
+
const valueProxy = computed({
|
|
32000
|
+
get: () => `${props.value}`,
|
|
32001
|
+
set: (v) => {
|
|
32002
|
+
emit("update:enabled", true);
|
|
32003
|
+
emit("update:value", v);
|
|
32004
|
+
}
|
|
32005
|
+
});
|
|
32006
|
+
const descriptionProxy = computed({
|
|
32007
|
+
get: () => props.description ?? "",
|
|
32008
|
+
set: (v) => emit("update:description", v)
|
|
32009
|
+
});
|
|
32010
|
+
const enabledProxy = computed({
|
|
32011
|
+
get: () => props.enabled,
|
|
32012
|
+
set: (checked) => emit("update:enabled", checked)
|
|
32013
|
+
});
|
|
32014
|
+
return (_ctx, _cache) => {
|
|
32015
|
+
return openBlock(), createBlock(GridRow, {
|
|
32016
|
+
class: normalizeClass(["table-row-editable", { "required-parameter": _ctx.required }])
|
|
32017
|
+
}, {
|
|
32018
|
+
key: withCtx(() => [
|
|
32019
|
+
withDirectives(createElementVNode("input", {
|
|
32020
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => nameProxy.value = $event),
|
|
32021
|
+
placeholder: "Key"
|
|
32022
|
+
}, null, 512), [
|
|
32023
|
+
[vModelText, nameProxy.value]
|
|
32024
|
+
])
|
|
32025
|
+
]),
|
|
32026
|
+
value: withCtx(() => [
|
|
32027
|
+
withDirectives(createElementVNode("input", {
|
|
32028
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => valueProxy.value = $event),
|
|
32029
|
+
placeholder: "Value"
|
|
32030
|
+
}, null, 512), [
|
|
32031
|
+
[vModelText, valueProxy.value]
|
|
32032
|
+
])
|
|
32033
|
+
]),
|
|
32034
|
+
description: withCtx(() => [
|
|
32035
|
+
withDirectives(createElementVNode("input", {
|
|
32036
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => descriptionProxy.value = $event),
|
|
32037
|
+
placeholder: "Description"
|
|
32038
|
+
}, null, 512), [
|
|
32039
|
+
[vModelText, descriptionProxy.value]
|
|
32040
|
+
])
|
|
32041
|
+
]),
|
|
32042
|
+
meta: withCtx(() => [
|
|
32043
|
+
createElementVNode("label", _hoisted_1$h, [
|
|
32044
|
+
withDirectives(createElementVNode("input", {
|
|
32045
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => enabledProxy.value = $event),
|
|
32046
|
+
type: "checkbox"
|
|
32047
|
+
}, null, 512), [
|
|
32048
|
+
[vModelCheckbox, enabledProxy.value]
|
|
32049
|
+
]),
|
|
32050
|
+
_hoisted_2$b
|
|
32051
|
+
]),
|
|
32052
|
+
!_ctx.required ? (openBlock(), createElementBlock("button", {
|
|
32053
|
+
key: 0,
|
|
32054
|
+
class: "meta-delete",
|
|
32055
|
+
type: "button",
|
|
32056
|
+
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("delete"))
|
|
32057
|
+
}, _hoisted_4$4)) : createCommentVNode("", true)
|
|
32058
|
+
]),
|
|
32059
|
+
_: 1
|
|
32060
|
+
}, 8, ["class"]);
|
|
32061
|
+
};
|
|
32062
|
+
}
|
|
32063
|
+
});
|
|
32064
|
+
const GridRowEditable = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-1cd9d274"]]);
|
|
32065
|
+
const _withScopeId = (n) => (pushScopeId("data-v-eccda22a"), n = n(), popScopeId(), n);
|
|
32066
|
+
const _hoisted_1$g = ["value"];
|
|
32067
|
+
const _hoisted_2$a = ["value"];
|
|
32068
|
+
const _hoisted_3$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("input", {
|
|
32069
|
+
disabled: "",
|
|
32070
|
+
value: "Read-only"
|
|
32071
|
+
}, null, -1));
|
|
32072
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
32073
|
+
__name: "GridRowGenerated",
|
|
32074
|
+
props: {
|
|
32075
|
+
item: {}
|
|
32076
|
+
},
|
|
32077
|
+
setup(__props) {
|
|
32078
|
+
return (_ctx, _cache) => {
|
|
32079
|
+
return openBlock(), createBlock(GridRow, { class: "table-row-generated" }, {
|
|
32080
|
+
key: withCtx(() => [
|
|
32081
|
+
createElementVNode("input", {
|
|
32082
|
+
disabled: "",
|
|
32083
|
+
placeholder: "key",
|
|
32084
|
+
value: _ctx.item.name
|
|
32085
|
+
}, null, 8, _hoisted_1$g)
|
|
32086
|
+
]),
|
|
32087
|
+
value: withCtx(() => [
|
|
32088
|
+
createElementVNode("input", {
|
|
32089
|
+
disabled: "",
|
|
32090
|
+
placeholder: "value",
|
|
32091
|
+
type: "password",
|
|
32092
|
+
value: _ctx.item.value
|
|
32093
|
+
}, null, 8, _hoisted_2$a)
|
|
32094
|
+
]),
|
|
32095
|
+
description: withCtx(() => [
|
|
32096
|
+
_hoisted_3$5
|
|
32097
|
+
]),
|
|
32098
|
+
_: 1
|
|
32099
|
+
});
|
|
32100
|
+
};
|
|
32101
|
+
}
|
|
32102
|
+
});
|
|
32103
|
+
const GridRowGenerated = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-eccda22a"]]);
|
|
32104
|
+
const _hoisted_1$f = { class: "table" };
|
|
32105
|
+
const _hoisted_2$9 = { class: "meta-actions" };
|
|
32106
|
+
const _hoisted_3$4 = { class: "meta-actions-item-icon" };
|
|
32107
|
+
const _hoisted_4$3 = { class: "meta-actions-item-icon" };
|
|
31829
32108
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
31830
32109
|
__name: "Grid",
|
|
31831
32110
|
props: {
|
|
@@ -31845,110 +32124,44 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
31845
32124
|
}
|
|
31846
32125
|
return (_ctx, _cache) => {
|
|
31847
32126
|
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
31848
|
-
|
|
31849
|
-
|
|
31850
|
-
|
|
31851
|
-
|
|
31852
|
-
[vShow, showDescription.value]
|
|
31853
|
-
]),
|
|
31854
|
-
createElementVNode("div", {
|
|
31855
|
-
class: "table-row-meta",
|
|
31856
|
-
onClick: _cache[0] || (_cache[0] = ($event) => showDescription.value = !showDescription.value)
|
|
31857
|
-
}, _hoisted_9$1)
|
|
31858
|
-
]),
|
|
32127
|
+
createVNode(GridHeader, {
|
|
32128
|
+
showDescription: showDescription.value,
|
|
32129
|
+
"onUpdate:showDescription": _cache[0] || (_cache[0] = ($event) => showDescription.value = $event)
|
|
32130
|
+
}, null, 8, ["showDescription"]),
|
|
31859
32131
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.generatedItems, (item) => {
|
|
31860
|
-
return openBlock(),
|
|
31861
|
-
key: item.
|
|
31862
|
-
|
|
32132
|
+
return openBlock(), createBlock(GridRowGenerated, {
|
|
32133
|
+
key: item.name,
|
|
32134
|
+
item,
|
|
32135
|
+
showDescription: showDescription.value,
|
|
31863
32136
|
onClick: _cache[1] || (_cache[1] = ($event) => unref(clickGeneratedParameter).emit())
|
|
31864
|
-
}, [
|
|
31865
|
-
createElementVNode("div", _hoisted_10, [
|
|
31866
|
-
withDirectives(createElementVNode("input", {
|
|
31867
|
-
"onUpdate:modelValue": ($event) => item.name = $event,
|
|
31868
|
-
disabled: "",
|
|
31869
|
-
placeholder: "key"
|
|
31870
|
-
}, null, 8, _hoisted_11), [
|
|
31871
|
-
[vModelText, item.name]
|
|
31872
|
-
])
|
|
31873
|
-
]),
|
|
31874
|
-
createElementVNode("div", _hoisted_12, [
|
|
31875
|
-
withDirectives(createElementVNode("input", {
|
|
31876
|
-
"onUpdate:modelValue": ($event) => item.value = $event,
|
|
31877
|
-
disabled: "",
|
|
31878
|
-
placeholder: "value",
|
|
31879
|
-
type: "password"
|
|
31880
|
-
}, null, 8, _hoisted_13), [
|
|
31881
|
-
[vModelText, item.value]
|
|
31882
|
-
])
|
|
31883
|
-
]),
|
|
31884
|
-
withDirectives(createElementVNode("div", _hoisted_14, _hoisted_16, 512), [
|
|
31885
|
-
[vShow, showDescription.value]
|
|
31886
|
-
]),
|
|
31887
|
-
_hoisted_17
|
|
31888
|
-
]);
|
|
32137
|
+
}, null, 8, ["item", "showDescription"]);
|
|
31889
32138
|
}), 128)),
|
|
31890
32139
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item, index) => {
|
|
31891
|
-
return withDirectives((openBlock(),
|
|
31892
|
-
key:
|
|
31893
|
-
|
|
31894
|
-
|
|
31895
|
-
|
|
31896
|
-
|
|
31897
|
-
|
|
31898
|
-
|
|
31899
|
-
|
|
31900
|
-
|
|
31901
|
-
|
|
31902
|
-
|
|
31903
|
-
|
|
31904
|
-
|
|
31905
|
-
createElementVNode("div", _hoisted_20, [
|
|
31906
|
-
withDirectives(createElementVNode("input", {
|
|
31907
|
-
"onUpdate:modelValue": ($event) => item.value = $event,
|
|
31908
|
-
placeholder: "Value"
|
|
31909
|
-
}, null, 8, _hoisted_21), [
|
|
31910
|
-
[vModelText, item.value]
|
|
31911
|
-
])
|
|
31912
|
-
]),
|
|
31913
|
-
withDirectives(createElementVNode("div", _hoisted_22, [
|
|
31914
|
-
withDirectives(createElementVNode("input", {
|
|
31915
|
-
"onUpdate:modelValue": ($event) => item.description = $event,
|
|
31916
|
-
placeholder: "Description"
|
|
31917
|
-
}, null, 8, _hoisted_23), [
|
|
31918
|
-
[vModelText, item.description]
|
|
31919
|
-
])
|
|
31920
|
-
], 512), [
|
|
31921
|
-
[vShow, showDescription.value]
|
|
31922
|
-
]),
|
|
31923
|
-
createElementVNode("div", _hoisted_24, [
|
|
31924
|
-
createElementVNode("label", _hoisted_25, [
|
|
31925
|
-
withDirectives(createElementVNode("input", {
|
|
31926
|
-
"onUpdate:modelValue": ($event) => item.enabled = $event,
|
|
31927
|
-
checked: "",
|
|
31928
|
-
type: "checkbox"
|
|
31929
|
-
}, null, 8, _hoisted_26), [
|
|
31930
|
-
[vModelCheckbox, item.enabled]
|
|
31931
|
-
]),
|
|
31932
|
-
_hoisted_27
|
|
31933
|
-
]),
|
|
31934
|
-
createElementVNode("button", {
|
|
31935
|
-
class: "meta-delete",
|
|
31936
|
-
type: "button",
|
|
31937
|
-
onClick: ($event) => _ctx.$emit("deleteIndex", index)
|
|
31938
|
-
}, _hoisted_30, 8, _hoisted_28)
|
|
31939
|
-
])
|
|
31940
|
-
], 2)), [
|
|
32140
|
+
return withDirectives((openBlock(), createBlock(GridRowEditable, {
|
|
32141
|
+
key: index,
|
|
32142
|
+
description: item.description,
|
|
32143
|
+
"onUpdate:description": ($event) => item.description = $event,
|
|
32144
|
+
enabled: item.enabled,
|
|
32145
|
+
"onUpdate:enabled": ($event) => item.enabled = $event,
|
|
32146
|
+
name: item.name,
|
|
32147
|
+
"onUpdate:name": ($event) => item.name = $event,
|
|
32148
|
+
value: item.value,
|
|
32149
|
+
"onUpdate:value": ($event) => item.value = $event,
|
|
32150
|
+
required: item.required,
|
|
32151
|
+
showDescription: showDescription.value,
|
|
32152
|
+
onDelete: ($event) => _ctx.$emit("deleteIndex", index)
|
|
32153
|
+
}, null, 8, ["description", "onUpdate:description", "enabled", "onUpdate:enabled", "name", "onUpdate:name", "value", "onUpdate:value", "required", "showDescription", "onDelete"])), [
|
|
31941
32154
|
[vShow, !_ctx.showMoreFilter || _ctx.showMoreFilter && index < 5 || showMore.value]
|
|
31942
32155
|
]);
|
|
31943
32156
|
}), 128)),
|
|
31944
|
-
createElementVNode("div",
|
|
32157
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
31945
32158
|
_ctx.addLabel ? (openBlock(), createElementBlock("button", {
|
|
31946
32159
|
key: 0,
|
|
31947
32160
|
class: "meta-actions-item",
|
|
31948
32161
|
type: "button",
|
|
31949
32162
|
onClick: addHandler
|
|
31950
32163
|
}, [
|
|
31951
|
-
createElementVNode("i",
|
|
32164
|
+
createElementVNode("i", _hoisted_3$4, [
|
|
31952
32165
|
createVNode(unref(j), { icon: "Add" })
|
|
31953
32166
|
]),
|
|
31954
32167
|
createTextVNode(" " + toDisplayString(_ctx.addLabel), 1)
|
|
@@ -31960,7 +32173,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
31960
32173
|
onClick: _cache[2] || (_cache[2] = ($event) => showMore.value = true)
|
|
31961
32174
|
}, [
|
|
31962
32175
|
createTextVNode(" Show More "),
|
|
31963
|
-
createElementVNode("i",
|
|
32176
|
+
createElementVNode("i", _hoisted_4$3, [
|
|
31964
32177
|
createVNode(unref(j), { icon: "ChevronDown" })
|
|
31965
32178
|
])
|
|
31966
32179
|
])) : createCommentVNode("", true)
|
|
@@ -31969,9 +32182,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
31969
32182
|
};
|
|
31970
32183
|
}
|
|
31971
32184
|
});
|
|
32185
|
+
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-2e1a8fea"]]);
|
|
31972
32186
|
const _hoisted_1$e = { class: "navtable simpletable" };
|
|
31973
32187
|
const _hoisted_2$8 = { class: "navtable-table" };
|
|
31974
|
-
const _hoisted_3$3 = /* @__PURE__ */ createStaticVNode('<div class="navtable-item navtable-item__top"><div class="navtable-item-33"><label for="">Name</label></div><div class="navtable-item-66"><label for="">Value</label></div></div>', 1);
|
|
32188
|
+
const _hoisted_3$3 = /* @__PURE__ */ createStaticVNode('<div class="navtable-item navtable-item__top" data-v-5ba40e52><div class="navtable-item-33" data-v-5ba40e52><label for="" data-v-5ba40e52>Name</label></div><div class="navtable-item-66" data-v-5ba40e52><label for="" data-v-5ba40e52>Value</label></div></div>', 1);
|
|
31975
32189
|
const _hoisted_4$2 = { class: "navtable-item-33" };
|
|
31976
32190
|
const _hoisted_5$2 = { class: "navtable-item-66" };
|
|
31977
32191
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -32002,6 +32216,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
32002
32216
|
};
|
|
32003
32217
|
}
|
|
32004
32218
|
});
|
|
32219
|
+
const SimpleGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-5ba40e52"]]);
|
|
32005
32220
|
const _hoisted_1$d = { key: 0 };
|
|
32006
32221
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
32007
32222
|
__name: "RequestBody",
|
|
@@ -32020,9 +32235,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
32020
32235
|
}
|
|
32021
32236
|
};
|
|
32022
32237
|
return (_ctx, _cache) => {
|
|
32023
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
32238
|
+
return openBlock(), createBlock(unref(_sfc_main$v), { title: "Body" }, {
|
|
32024
32239
|
default: withCtx(() => [
|
|
32025
|
-
_ctx.body && _ctx.body.length === 0 && _ctx.formData && _ctx.formData.length === 0 ? (openBlock(), createElementBlock("span", _hoisted_1$d, "No Body")) : _ctx.formData && _ctx.formData.length > 0 ? (openBlock(), createBlock(unref(
|
|
32240
|
+
_ctx.body && _ctx.body.length === 0 && _ctx.formData && _ctx.formData.length === 0 ? (openBlock(), createElementBlock("span", _hoisted_1$d, "No Body")) : _ctx.formData && _ctx.formData.length > 0 ? (openBlock(), createBlock(unref(Grid), {
|
|
32026
32241
|
key: 1,
|
|
32027
32242
|
items: _ctx.formData
|
|
32028
32243
|
}, null, 8, ["items"])) : (openBlock(), createBlock(unref(CodeMirror), {
|
|
@@ -32084,7 +32299,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32084
32299
|
return !!(((_a2 = props.cookies) == null ? void 0 : _a2.length) || ((_b = props.generatedCookies) == null ? void 0 : _b.length));
|
|
32085
32300
|
});
|
|
32086
32301
|
return (_ctx, _cache) => {
|
|
32087
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
32302
|
+
return openBlock(), createBlock(unref(_sfc_main$v), {
|
|
32088
32303
|
defaultOpen: hasCookies.value,
|
|
32089
32304
|
title: "Cookies"
|
|
32090
32305
|
}, {
|
|
@@ -32098,7 +32313,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
32098
32313
|
_hoisted_2$7,
|
|
32099
32314
|
createTextVNode(" Cookies ")
|
|
32100
32315
|
])
|
|
32101
|
-
])) : (openBlock(), createBlock(unref(
|
|
32316
|
+
])) : (openBlock(), createBlock(unref(Grid), {
|
|
32102
32317
|
key: 1,
|
|
32103
32318
|
addLabel: "Cookie",
|
|
32104
32319
|
generatedItems: _ctx.generatedCookies,
|
|
@@ -32158,7 +32373,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
32158
32373
|
return !!(((_a2 = props.headers) == null ? void 0 : _a2.length) || ((_b = props.generatedHeaders) == null ? void 0 : _b.length));
|
|
32159
32374
|
});
|
|
32160
32375
|
return (_ctx, _cache) => {
|
|
32161
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
32376
|
+
return openBlock(), createBlock(unref(_sfc_main$v), {
|
|
32162
32377
|
defaultOpen: hasHeaders.value,
|
|
32163
32378
|
title: "Headers"
|
|
32164
32379
|
}, {
|
|
@@ -32172,7 +32387,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
32172
32387
|
_hoisted_2$6,
|
|
32173
32388
|
createTextVNode(" Headers ")
|
|
32174
32389
|
])
|
|
32175
|
-
])) : (openBlock(), createBlock(unref(
|
|
32390
|
+
])) : (openBlock(), createBlock(unref(Grid), {
|
|
32176
32391
|
key: 1,
|
|
32177
32392
|
addLabel: "Header",
|
|
32178
32393
|
generatedItems: _ctx.generatedHeaders,
|
|
@@ -32232,7 +32447,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
32232
32447
|
return !!(((_a2 = props.queries) == null ? void 0 : _a2.length) || ((_b = props.generatedQueries) == null ? void 0 : _b.length));
|
|
32233
32448
|
});
|
|
32234
32449
|
return (_ctx, _cache) => {
|
|
32235
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
32450
|
+
return openBlock(), createBlock(unref(_sfc_main$v), {
|
|
32236
32451
|
defaultOpen: hasQueries.value,
|
|
32237
32452
|
title: "Query Parameters"
|
|
32238
32453
|
}, {
|
|
@@ -32246,7 +32461,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
32246
32461
|
_hoisted_2$5,
|
|
32247
32462
|
createTextVNode(" Query Parameter ")
|
|
32248
32463
|
])
|
|
32249
|
-
])) : (openBlock(), createBlock(unref(
|
|
32464
|
+
])) : (openBlock(), createBlock(unref(Grid), {
|
|
32250
32465
|
key: 1,
|
|
32251
32466
|
addLabel: "Query Parameter",
|
|
32252
32467
|
generatedItems: _ctx.generatedQueries,
|
|
@@ -32301,7 +32516,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
32301
32516
|
(_a2 = activeRequest2.variables) == null ? void 0 : _a2.push({ name: "", value: "", enabled: true });
|
|
32302
32517
|
}
|
|
32303
32518
|
return (_ctx, _cache) => {
|
|
32304
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
32519
|
+
return openBlock(), createBlock(unref(_sfc_main$v), {
|
|
32305
32520
|
defaultOpen: unref(activeRequest2).variables && unref(activeRequest2).variables.length > 0,
|
|
32306
32521
|
title: "Variables"
|
|
32307
32522
|
}, {
|
|
@@ -32315,7 +32530,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
32315
32530
|
_hoisted_2$4,
|
|
32316
32531
|
createTextVNode(" Variable ")
|
|
32317
32532
|
])
|
|
32318
|
-
])) : (openBlock(), createBlock(unref(
|
|
32533
|
+
])) : (openBlock(), createBlock(unref(Grid), {
|
|
32319
32534
|
key: 1,
|
|
32320
32535
|
addLabel: "Variable",
|
|
32321
32536
|
items: _ctx.variables,
|
|
@@ -32344,13 +32559,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
32344
32559
|
const {
|
|
32345
32560
|
openApi: { operation, globalSecurity }
|
|
32346
32561
|
} = useOpenApiStore();
|
|
32347
|
-
const authenticationRequest = computed(
|
|
32348
|
-
|
|
32349
|
-
|
|
32350
|
-
|
|
32351
|
-
|
|
32352
|
-
|
|
32353
|
-
|
|
32562
|
+
const authenticationRequest = computed(
|
|
32563
|
+
() => {
|
|
32564
|
+
var _a2;
|
|
32565
|
+
return getRequestFromAuthentication(
|
|
32566
|
+
authentication2,
|
|
32567
|
+
((_a2 = operation == null ? void 0 : operation.information) == null ? void 0 : _a2.security) ?? globalSecurity
|
|
32568
|
+
);
|
|
32569
|
+
}
|
|
32570
|
+
);
|
|
32354
32571
|
return (_ctx, _cache) => {
|
|
32355
32572
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
32356
32573
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -32440,7 +32657,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
32440
32657
|
return null;
|
|
32441
32658
|
});
|
|
32442
32659
|
return (_ctx, _cache) => {
|
|
32443
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
32660
|
+
return openBlock(), createBlock(unref(_sfc_main$v), { title: "Body" }, {
|
|
32444
32661
|
default: withCtx(() => [
|
|
32445
32662
|
_ctx.active ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
32446
32663
|
codeMirrorLanguage.value ? (openBlock(), createBlock(unref(He), {
|
|
@@ -32562,7 +32779,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
32562
32779
|
}).join("-");
|
|
32563
32780
|
};
|
|
32564
32781
|
return (_ctx, _cache) => {
|
|
32565
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
32782
|
+
return openBlock(), createBlock(unref(_sfc_main$v), { title: "Headers" }, {
|
|
32566
32783
|
default: withCtx(() => [
|
|
32567
32784
|
_ctx.headers.length > 0 ? (openBlock(), createBlock(unref(SimpleTable), { key: 0 }, {
|
|
32568
32785
|
default: withCtx(() => [
|
|
@@ -32742,9 +32959,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
32742
32959
|
headers: responseHeaders.value
|
|
32743
32960
|
}, null, 8, ["active", "data", "headers"]),
|
|
32744
32961
|
createVNode(_sfc_main$3, { headers: responseHeaders.value }, null, 8, ["headers"]),
|
|
32745
|
-
createVNode(unref(_sfc_main$
|
|
32962
|
+
createVNode(unref(_sfc_main$v), { title: "Cookies" }, {
|
|
32746
32963
|
default: withCtx(() => [
|
|
32747
|
-
withDirectives(createVNode(unref(
|
|
32964
|
+
withDirectives(createVNode(unref(SimpleGrid), { items: responseCookies.value }, null, 8, ["items"]), [
|
|
32748
32965
|
[vShow, responseCookies.value.length > 0]
|
|
32749
32966
|
]),
|
|
32750
32967
|
responseCookies.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_8, "No Cookies")) : createCommentVNode("", true)
|
|
@@ -32790,8 +33007,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32790
33007
|
);
|
|
32791
33008
|
return (_ctx, _cache) => {
|
|
32792
33009
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
32793
|
-
createVNode(unref(_sfc_main$
|
|
32794
|
-
createVNode(_sfc_main$
|
|
33010
|
+
createVNode(unref(_sfc_main$E), { id: _ctx.theme }, null, 8, ["id"]),
|
|
33011
|
+
createVNode(_sfc_main$C, {
|
|
32795
33012
|
class: "scalar-api-client",
|
|
32796
33013
|
method: unref(activeRequest2).type ?? "get",
|
|
32797
33014
|
property: "--default-scalar-api-client-color",
|
|
@@ -32867,7 +33084,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32867
33084
|
});
|
|
32868
33085
|
export {
|
|
32869
33086
|
_sfc_main as ApiClient,
|
|
32870
|
-
_sfc_main$
|
|
33087
|
+
_sfc_main$C as HttpMethod,
|
|
32871
33088
|
RequestAuthentication,
|
|
32872
33089
|
SecurityScheme,
|
|
32873
33090
|
SecuritySchemeSelector,
|