@scalar/api-client 2.2.6 → 2.2.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 +19 -0
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +18 -18
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +20 -20
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +12 -12
- package/dist/components/HttpMethod/index.d.ts +0 -1
- package/dist/components/HttpMethod/index.d.ts.map +1 -1
- package/dist/components/HttpMethod/index.js +2 -4
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +119 -102
- package/dist/components/OpenApiClientButton.vue.d.ts +1 -0
- package/dist/components/OpenApiClientButton.vue.d.ts.map +1 -1
- package/dist/components/OpenApiClientButton.vue.js +2 -2
- package/dist/components/OpenApiClientButton.vue2.js +23 -17
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +45 -41
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +28 -23
- package/dist/libs/create-client.d.ts +1 -0
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +31 -30
- package/dist/style.css +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +65 -62
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +82 -84
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +27 -24
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +3 -3
- package/dist/views/Request/RequestSubpageHeader.vue2.js +34 -32
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +1 -1
- package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
- package/dist/views/Request/libs/live-sync.js +77 -78
- package/package.json +10 -10
- package/dist/components/HttpMethod/helpers.d.ts +0 -4
- package/dist/components/HttpMethod/helpers.d.ts.map +0 -1
- package/dist/components/HttpMethod/helpers.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAgLA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAKlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAIxC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,mBAAmB,CAAC,mBAAmB,CAAC,CAAA;IAC3D,kBAAkB,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAA;IAC7D,MAAM,EAAE,MAAM,CAAA;IAEd,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAkEiC,IAAI,GAAG,MAAM;;;;;;;
|
|
1
|
+
{"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAgLA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAKlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAIxC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,mBAAmB,CAAC,mBAAmB,CAAC,CAAA;IAC3D,kBAAkB,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAA;IAC7D,MAAM,EAAE,MAAM,CAAA;IAEd,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAkEiC,IAAI,GAAG,MAAM;;;;;;;AAuOhD,wBAQG"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarButton as K, ScalarIcon as O } from "@scalar/components";
|
|
1
|
+
import { defineComponent as I, ref as d, computed as m, onMounted as P, openBlock as s, createBlock as h, unref as p, withCtx as w, createElementVNode as a, normalizeStyle as y, createElementBlock as f, Fragment as R, renderList as T, normalizeClass as j, createTextVNode as b, toDisplayString as x, createVNode as q, createCommentVNode as D } from "vue";
|
|
2
|
+
import { ScalarTeleport as F, ScalarButton as K, ScalarIcon as O } from "@scalar/components";
|
|
3
3
|
import { onClickOutside as L } from "@vueuse/core";
|
|
4
4
|
import M from "fuse.js";
|
|
5
|
-
import { parseEnvVariables as
|
|
6
|
-
const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 whitespace-nowrap" }, H = { class: "w-20 overflow-hidden text-ellipsis text-right whitespace-nowrap" }, oe = /* @__PURE__ */
|
|
5
|
+
import { parseEnvVariables as k } from "../../libs/environment-parser.js";
|
|
6
|
+
const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 whitespace-nowrap" }, H = { class: "w-20 overflow-hidden text-ellipsis text-right whitespace-nowrap" }, oe = /* @__PURE__ */ I({
|
|
7
7
|
__name: "EnvironmentVariableDropdown",
|
|
8
8
|
props: {
|
|
9
9
|
query: {},
|
|
@@ -13,27 +13,27 @@ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 w
|
|
|
13
13
|
dropdownPosition: {}
|
|
14
14
|
},
|
|
15
15
|
emits: ["select"],
|
|
16
|
-
setup(
|
|
17
|
-
const r =
|
|
18
|
-
const e =
|
|
19
|
-
|
|
16
|
+
setup(g, { expose: V, emit: E }) {
|
|
17
|
+
const r = g, _ = E, c = d(!0), u = d(null), n = d(0), C = () => {
|
|
18
|
+
const e = z.value.params.workspace;
|
|
19
|
+
S({
|
|
20
20
|
name: "environment.default",
|
|
21
21
|
params: {
|
|
22
22
|
workspace: e
|
|
23
23
|
}
|
|
24
24
|
}), c.value = !1;
|
|
25
|
-
}, { push:
|
|
25
|
+
}, { push: S, currentRoute: z } = r.router, A = new M(k(r.activeEnvVariables.value), {
|
|
26
26
|
keys: ["key", "value"]
|
|
27
|
-
}), i =
|
|
27
|
+
}), i = m(() => {
|
|
28
28
|
const e = r.query;
|
|
29
29
|
if (!e)
|
|
30
|
-
return
|
|
31
|
-
const o =
|
|
30
|
+
return k(r.activeEnvVariables.value).slice(-4).filter(({ key: t, value: l }) => t !== "" || l !== "");
|
|
31
|
+
const o = A.search(e, { limit: 10 });
|
|
32
32
|
return o.length > 0 ? o.map((t) => t.item).filter(({ key: t, value: l }) => t !== "" || l !== "") : [];
|
|
33
|
-
}),
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
|
|
33
|
+
}), v = (e) => {
|
|
34
|
+
_("select", e);
|
|
35
|
+
}, B = (e) => e.value ? e.value.color : "#8E8E8E";
|
|
36
|
+
V({
|
|
37
37
|
handleArrowKey: (e) => {
|
|
38
38
|
const o = e === "up" ? -1 : 1, t = i.value.length;
|
|
39
39
|
t !== 0 && (n.value = (n.value + o + t) % t);
|
|
@@ -41,13 +41,13 @@ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 w
|
|
|
41
41
|
handleSelect: () => {
|
|
42
42
|
if (n.value >= 0) {
|
|
43
43
|
const e = i.value[n.value];
|
|
44
|
-
e &&
|
|
44
|
+
e && v(e.key);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
47
|
+
}), P(() => {
|
|
48
48
|
n.value = 0;
|
|
49
49
|
});
|
|
50
|
-
const
|
|
50
|
+
const N = m(() => {
|
|
51
51
|
var e, o;
|
|
52
52
|
return {
|
|
53
53
|
left: (((e = r.dropdownPosition) == null ? void 0 : e.left) ?? 0) + "px",
|
|
@@ -61,51 +61,54 @@ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 w
|
|
|
61
61
|
c.value = !1;
|
|
62
62
|
},
|
|
63
63
|
{ ignore: [u] }
|
|
64
|
-
), (e, o) => c.value ? (s(),
|
|
64
|
+
), (e, o) => c.value ? (s(), h(p(F), {
|
|
65
65
|
key: 0,
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
a("
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
66
|
+
class: "scalar-client"
|
|
67
|
+
}, {
|
|
68
|
+
default: w(() => [
|
|
69
|
+
a("div", {
|
|
70
|
+
ref_key: "dropdownRef",
|
|
71
|
+
ref: u,
|
|
72
|
+
class: "fixed left-0 top-0 flex flex-col p-0.75 max-h-[60svh] w-56 rounded border custom-scroll",
|
|
73
|
+
style: y(N.value)
|
|
74
|
+
}, [
|
|
75
|
+
i.value.length ? (s(), f("ul", Q, [
|
|
76
|
+
(s(!0), f(R, null, T(i.value, (t, l) => (s(), f("li", {
|
|
77
|
+
key: t.key,
|
|
78
|
+
class: j(["h-8 font-code text-xxs hover:bg-b-2 flex cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150", { "bg-b-2": l === n.value }]),
|
|
79
|
+
onClick: (W) => v(t.key)
|
|
80
|
+
}, [
|
|
81
|
+
a("div", G, [
|
|
82
|
+
a("span", {
|
|
83
|
+
class: "h-2.5 w-2.5 min-w-2.5 rounded-full",
|
|
84
|
+
style: y({
|
|
85
|
+
backgroundColor: B(e.activeEnvironment)
|
|
86
|
+
})
|
|
87
|
+
}, null, 4),
|
|
88
|
+
b(" " + x(t.key), 1)
|
|
89
|
+
]),
|
|
90
|
+
a("span", H, x(t.value), 1)
|
|
91
|
+
], 10, $))), 128))
|
|
92
|
+
])) : (s(), h(p(K), {
|
|
93
|
+
key: 1,
|
|
94
|
+
class: "font-code text-xxs hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150",
|
|
95
|
+
variant: "secondary",
|
|
96
|
+
onClick: C
|
|
97
|
+
}, {
|
|
98
|
+
default: w(() => [
|
|
99
|
+
q(p(O), {
|
|
100
|
+
icon: "Add",
|
|
101
|
+
size: "sm"
|
|
102
|
+
}),
|
|
103
|
+
o[0] || (o[0] = b(" Add Variable "))
|
|
88
104
|
]),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}, {
|
|
97
|
-
default: q(() => [
|
|
98
|
-
D(b(O), {
|
|
99
|
-
icon: "Add",
|
|
100
|
-
size: "sm"
|
|
101
|
-
}),
|
|
102
|
-
o[0] || (o[0] = w(" Add Variable "))
|
|
103
|
-
]),
|
|
104
|
-
_: 1
|
|
105
|
-
})),
|
|
106
|
-
o[1] || (o[1] = a("div", { class: "absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted" }, null, -1))
|
|
107
|
-
], 4)
|
|
108
|
-
])) : F("", !0);
|
|
105
|
+
_: 1
|
|
106
|
+
})),
|
|
107
|
+
o[1] || (o[1] = a("div", { class: "absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted" }, null, -1))
|
|
108
|
+
], 4)
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
})) : D("", !0);
|
|
109
112
|
}
|
|
110
113
|
});
|
|
111
114
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AAwYA,KAAK,WAAW,GAAG;IACjB,0BAA0B,EAAE,MAAM,EAAE,CAAA;IACpC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA2fF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestAuth.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-5f5171f4"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,78 +1,77 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useActiveEntities as
|
|
4
|
-
import { useModal as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import oe from "./RequestExampleAuth.vue.js";
|
|
1
|
+
import { defineComponent as F, ref as b, computed as f, openBlock as u, createBlock as z, withCtx as r, createElementVNode as m, createTextVNode as _, toDisplayString as g, createElementBlock as p, createVNode as c, unref as i, createCommentVNode as W, Fragment as L, renderList as H, withModifiers as D, withKeys as P } from "vue";
|
|
2
|
+
import G from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
3
|
+
import { useActiveEntities as J } from "../../../../store/active-entities.js";
|
|
4
|
+
import { useModal as Q, ScalarIcon as O, ScalarComboboxMultiselect as X, ScalarButton as Y, ScalarIconButton as Z } from "@scalar/components";
|
|
5
|
+
import ee from "./DeleteRequestAuthModal.vue.js";
|
|
6
|
+
import te from "./RequestExampleAuth.vue.js";
|
|
8
7
|
import { displaySchemeFormatter as k } from "../../libs/auth.js";
|
|
9
|
-
import { ADD_AUTH_OPTIONS as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { useWorkspace as
|
|
14
|
-
const
|
|
8
|
+
import { ADD_AUTH_OPTIONS as le } from "../../consts/new-auth-options.js";
|
|
9
|
+
import se from "../../../../components/DataTable/DataTable.vue.js";
|
|
10
|
+
import oe from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
11
|
+
import ie from "../../../../components/DataTable/DataTableHeader.vue.js";
|
|
12
|
+
import { useWorkspace as ne } from "../../../../store/store.js";
|
|
13
|
+
const ce = { class: "flex flex-1 gap-1 items-center justify-between" }, re = {
|
|
15
14
|
key: 0,
|
|
16
15
|
class: "flex items-center gap-1 text-c-3"
|
|
17
|
-
},
|
|
16
|
+
}, ae = {
|
|
18
17
|
key: 0,
|
|
19
18
|
class: "flex relative scroll-timeline-x w-full"
|
|
20
|
-
},
|
|
19
|
+
}, ue = { class: "flex flex-1 gap-0.25 mr-1.5 items-center" }, me = {
|
|
21
20
|
key: 1,
|
|
22
21
|
class: "pl-2"
|
|
23
|
-
},
|
|
22
|
+
}, Re = /* @__PURE__ */ F({
|
|
24
23
|
__name: "RequestAuth",
|
|
25
24
|
props: {
|
|
26
25
|
selectedSecuritySchemeUids: {},
|
|
27
26
|
title: {}
|
|
28
27
|
},
|
|
29
28
|
setup(R) {
|
|
30
|
-
const { activeCollection:
|
|
31
|
-
collectionMutators:
|
|
29
|
+
const { activeCollection: a, activeRequest: h } = J(), {
|
|
30
|
+
collectionMutators: B,
|
|
32
31
|
isReadOnly: x,
|
|
33
|
-
requestMutators:
|
|
32
|
+
requestMutators: M,
|
|
34
33
|
securitySchemes: q,
|
|
35
|
-
securitySchemeMutators:
|
|
36
|
-
} =
|
|
37
|
-
var l,
|
|
38
|
-
const e = ((l = h.value) == null ? void 0 : l.security) ?? ((
|
|
34
|
+
securitySchemeMutators: V
|
|
35
|
+
} = ne(), K = b(null), w = b(null), y = Q(), C = b(void 0), U = f(() => {
|
|
36
|
+
var l, o;
|
|
37
|
+
const e = ((l = h.value) == null ? void 0 : l.security) ?? ((o = a.value) == null ? void 0 : o.security) ?? [];
|
|
39
38
|
return { filteredRequirements: e.filter((n) => Object.keys(n).length), requirements: e };
|
|
40
39
|
}), T = f(() => {
|
|
41
40
|
var t;
|
|
42
|
-
return (((t =
|
|
41
|
+
return (((t = a.value) == null ? void 0 : t.securitySchemes) ?? []).map((l) => q[l]).filter((l) => l);
|
|
43
42
|
}), j = f(
|
|
44
43
|
() => {
|
|
45
44
|
const e = [...T.value], t = [];
|
|
46
|
-
U.value.filteredRequirements.forEach((
|
|
45
|
+
U.value.filteredRequirements.forEach((s) => {
|
|
47
46
|
const d = e.findIndex(
|
|
48
|
-
(
|
|
47
|
+
(E) => E.nameKey === Object.keys(s)[0]
|
|
49
48
|
);
|
|
50
49
|
d > -1 && (t.push(e[d]), e.splice(d, 1));
|
|
51
50
|
});
|
|
52
51
|
const l = e.map(
|
|
53
|
-
(
|
|
54
|
-
),
|
|
55
|
-
(
|
|
52
|
+
(s) => k(s)
|
|
53
|
+
), o = t.map(
|
|
54
|
+
(s) => k(s)
|
|
56
55
|
), n = [
|
|
57
|
-
{ label: "Required authentication", options:
|
|
56
|
+
{ label: "Required authentication", options: o },
|
|
58
57
|
{ label: "Available authentication", options: l }
|
|
59
58
|
];
|
|
60
|
-
return x ?
|
|
59
|
+
return x ? o.length ? n : l : (n.push({
|
|
61
60
|
label: "Add new authentication",
|
|
62
|
-
options:
|
|
61
|
+
options: le
|
|
63
62
|
}), n);
|
|
64
63
|
}
|
|
65
64
|
), S = f(() => {
|
|
66
65
|
const { filteredRequirements: e, requirements: t } = U.value;
|
|
67
66
|
if (!t.length) return null;
|
|
68
|
-
const l = e.length < t.length,
|
|
69
|
-
return { icon:
|
|
70
|
-
}),
|
|
71
|
-
!
|
|
72
|
-
|
|
67
|
+
const l = e.length < t.length, o = l ? "Unlock" : "Lock", n = l ? "Optional" : "Required", d = `${e.length === 1 ? Object.keys(e[0])[0] : "Authentication"} ${n}`;
|
|
68
|
+
return { icon: o, text: d };
|
|
69
|
+
}), $ = (e) => {
|
|
70
|
+
!a.value || !h.value || (x ? B.edit(
|
|
71
|
+
a.value.uid,
|
|
73
72
|
"selectedSecuritySchemeUids",
|
|
74
73
|
e
|
|
75
|
-
) :
|
|
74
|
+
) : M.edit(
|
|
76
75
|
h.value.uid,
|
|
77
76
|
"selectedSecuritySchemeUids",
|
|
78
77
|
e
|
|
@@ -82,57 +81,57 @@ const ae = { class: "flex flex-1 gap-1 items-center justify-between" }, ue = {
|
|
|
82
81
|
(e) => k(q[e])
|
|
83
82
|
)
|
|
84
83
|
);
|
|
85
|
-
function
|
|
86
|
-
var
|
|
87
|
-
if (!((
|
|
88
|
-
const t = e.find((
|
|
84
|
+
function I(e) {
|
|
85
|
+
var o, n;
|
|
86
|
+
if (!((o = a.value) != null && o.uid) || !((n = h.value) != null && n.uid)) return;
|
|
87
|
+
const t = e.find((s) => s.payload), l = e.filter((s) => !s.payload).map(({ id: s }) => s);
|
|
89
88
|
if (t != null && t.payload) {
|
|
90
|
-
const
|
|
89
|
+
const s = V.add(
|
|
91
90
|
t.payload,
|
|
92
|
-
|
|
91
|
+
a.value.uid
|
|
93
92
|
);
|
|
94
|
-
|
|
93
|
+
s && l.push(s.uid);
|
|
95
94
|
}
|
|
96
|
-
|
|
95
|
+
$(l);
|
|
97
96
|
}
|
|
98
|
-
const
|
|
97
|
+
const A = (e) => {
|
|
99
98
|
var t;
|
|
100
|
-
|
|
99
|
+
$(
|
|
101
100
|
R.selectedSecuritySchemeUids.filter((l) => l !== e)
|
|
102
|
-
), (t =
|
|
101
|
+
), (t = w.value) == null || t.$el.focus();
|
|
103
102
|
};
|
|
104
|
-
function
|
|
105
|
-
|
|
103
|
+
function N(e) {
|
|
104
|
+
C.value = e, y.show();
|
|
106
105
|
}
|
|
107
|
-
return (e, t) => (
|
|
106
|
+
return (e, t) => (u(), z(G, {
|
|
108
107
|
class: "group/params",
|
|
109
108
|
itemCount: v.value.length
|
|
110
109
|
}, {
|
|
111
110
|
title: r(() => [
|
|
112
|
-
|
|
111
|
+
m("div", ce, [
|
|
113
112
|
_(g(e.title) + " ", 1),
|
|
114
|
-
S.value ? (
|
|
113
|
+
S.value ? (u(), p("div", re, [
|
|
115
114
|
_(g(S.value.text) + " ", 1),
|
|
116
|
-
c(i(
|
|
115
|
+
c(i(O), {
|
|
117
116
|
class: "text-c-3",
|
|
118
117
|
icon: S.value.icon,
|
|
119
118
|
size: "xs"
|
|
120
119
|
}, null, 8, ["icon"])
|
|
121
|
-
])) :
|
|
120
|
+
])) : W("", !0)
|
|
122
121
|
])
|
|
123
122
|
]),
|
|
124
123
|
default: r(() => [
|
|
125
|
-
|
|
126
|
-
c(i(
|
|
124
|
+
m("form", null, [
|
|
125
|
+
c(i(se), {
|
|
127
126
|
class: "flex-1",
|
|
128
127
|
columns: [""]
|
|
129
128
|
}, {
|
|
130
129
|
default: r(() => [
|
|
131
|
-
c(i(
|
|
130
|
+
c(i(oe), null, {
|
|
132
131
|
default: r(() => [
|
|
133
|
-
c(i(
|
|
132
|
+
c(i(ie), { class: "relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center" }, {
|
|
134
133
|
default: r(() => [
|
|
135
|
-
c(i(
|
|
134
|
+
c(i(X), {
|
|
136
135
|
ref_key: "comboboxRef",
|
|
137
136
|
ref: K,
|
|
138
137
|
class: "text-xs w-full",
|
|
@@ -142,41 +141,41 @@ const ae = { class: "flex flex-1 gap-1 items-center justify-between" }, ue = {
|
|
|
142
141
|
multiple: "",
|
|
143
142
|
options: j.value,
|
|
144
143
|
style: { "margin-left": "120px" },
|
|
145
|
-
teleport:
|
|
146
|
-
onDelete:
|
|
147
|
-
"onUpdate:modelValue":
|
|
144
|
+
teleport: "",
|
|
145
|
+
onDelete: N,
|
|
146
|
+
"onUpdate:modelValue": I
|
|
148
147
|
}, {
|
|
149
148
|
default: r(() => [
|
|
150
|
-
c(i(
|
|
149
|
+
c(i(Y), {
|
|
151
150
|
ref_key: "comboboxButtonRef",
|
|
152
|
-
ref:
|
|
151
|
+
ref: w,
|
|
153
152
|
class: "h-auto py-0 px-0 text-c-2 hover:text-c-1 font-normal justify-start -outline-offset-2",
|
|
154
153
|
fullWidth: "",
|
|
155
154
|
variant: "ghost"
|
|
156
155
|
}, {
|
|
157
156
|
default: r(() => [
|
|
158
|
-
t[3] || (t[3] =
|
|
159
|
-
v.value.length ? (
|
|
160
|
-
t[1] || (t[1] =
|
|
161
|
-
|
|
162
|
-
(
|
|
157
|
+
t[3] || (t[3] = m("div", { class: "text-c-1 h-8 flex min-w-[94px] items-center pr-0 pl-2" }, " Auth Type ", -1)),
|
|
158
|
+
v.value.length ? (u(), p("div", ae, [
|
|
159
|
+
t[1] || (t[1] = m("div", { class: "fade-left" }, null, -1)),
|
|
160
|
+
m("div", ue, [
|
|
161
|
+
(u(!0), p(L, null, H(v.value, (l) => (u(), p("span", {
|
|
163
162
|
key: l.id,
|
|
164
163
|
class: "cm-pill flex items-center mx-0 h-fit pr-0.5 !bg-b-2 text-c-1"
|
|
165
164
|
}, [
|
|
166
165
|
_(g(l.label) + " ", 1),
|
|
167
|
-
c(i(
|
|
166
|
+
c(i(Z), {
|
|
168
167
|
class: "cursor-pointer -ml-0.5 text-c-3 hover:text-c-1 rounded-full",
|
|
169
168
|
icon: "Close",
|
|
170
169
|
label: `Remove ${l.label}`,
|
|
171
170
|
size: "xs",
|
|
172
|
-
onClick:
|
|
173
|
-
onKeydown:
|
|
171
|
+
onClick: D((o) => A(l.id), ["stop"]),
|
|
172
|
+
onKeydown: P(D((o) => A(l.id), ["stop"]), ["enter"])
|
|
174
173
|
}, null, 8, ["label", "onClick", "onKeydown"])
|
|
175
174
|
]))), 128))
|
|
176
175
|
]),
|
|
177
|
-
t[2] || (t[2] =
|
|
178
|
-
])) : (
|
|
179
|
-
c(i(
|
|
176
|
+
t[2] || (t[2] = m("div", { class: "fade-right" }, null, -1))
|
|
177
|
+
])) : (u(), p("div", me, " None ")),
|
|
178
|
+
c(i(O), {
|
|
180
179
|
class: "mr-[9px]",
|
|
181
180
|
icon: "ChevronDown",
|
|
182
181
|
size: "md"
|
|
@@ -186,23 +185,22 @@ const ae = { class: "flex flex-1 gap-1 items-center justify-between" }, ue = {
|
|
|
186
185
|
}, 512)
|
|
187
186
|
]),
|
|
188
187
|
_: 1
|
|
189
|
-
}, 8, ["isDeletable", "modelValue", "options"
|
|
188
|
+
}, 8, ["isDeletable", "modelValue", "options"])
|
|
190
189
|
]),
|
|
191
190
|
_: 1
|
|
192
191
|
})
|
|
193
192
|
]),
|
|
194
193
|
_: 1
|
|
195
194
|
}),
|
|
196
|
-
c(
|
|
195
|
+
c(te, { selectedSecuritySchemeUids: e.selectedSecuritySchemeUids }, null, 8, ["selectedSecuritySchemeUids"])
|
|
197
196
|
]),
|
|
198
197
|
_: 1
|
|
199
198
|
}),
|
|
200
|
-
c(
|
|
201
|
-
scheme:
|
|
199
|
+
c(ee, {
|
|
200
|
+
scheme: C.value,
|
|
202
201
|
state: i(y),
|
|
203
202
|
onClose: t[0] || (t[0] = (l) => i(y).hide())
|
|
204
|
-
}, null, 8, ["scheme", "state"])
|
|
205
|
-
a("div", { id: C })
|
|
203
|
+
}, null, 8, ["scheme", "state"])
|
|
206
204
|
])
|
|
207
205
|
]),
|
|
208
206
|
_: 1
|
|
@@ -210,5 +208,5 @@ const ae = { class: "flex flex-1 gap-1 items-center justify-between" }, ue = {
|
|
|
210
208
|
}
|
|
211
209
|
});
|
|
212
210
|
export {
|
|
213
|
-
|
|
211
|
+
Re as default
|
|
214
212
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAklBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAo4BF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-77d0f477"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|