@scalar/api-client 2.2.62 → 2.3.2
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 +65 -0
- package/README.md +2 -6
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +38 -38
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +21 -21
- package/dist/components/DataTable/DataTableHeader.vue.js +9 -9
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +48 -47
- package/dist/components/DataTable/DataTableRow.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableRow.vue.js +8 -8
- package/dist/components/SectionFilter.vue.js +2 -2
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +49 -38
- package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
- package/dist/components/Server/ServerDropdownItem.vue2.js +49 -46
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +7 -7
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +3 -3
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +13 -14
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +18 -19
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +13 -14
- package/dist/libs/create-client.d.ts +1 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +20 -20
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +69 -64
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +71 -64
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +8 -7
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +21 -23
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +74 -63
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +31 -31
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +120 -96
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +32 -27
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +10 -10
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as N, computed as P, ref as j, openBlock as o, createElementBlock as n, Fragment as p, renderList as U, createBlock as _, unref as d, normalizeClass as C, withCtx as l, createVNode as u, createTextVNode as y, toDisplayString as g, createCommentVNode as b, mergeProps as V, createElementVNode as T, capitalize as c } from "vue";
|
|
2
|
+
import { useWorkspace as q } from "../../../../store/store.js";
|
|
3
|
+
import R from "./OAuth2.vue.js";
|
|
4
|
+
import w from "./RequestAuthDataTableInput.vue.js";
|
|
5
5
|
import s from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
6
|
-
import
|
|
6
|
+
import S from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
7
7
|
const z = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "flex min-h-8 border-t text-sm"
|
|
10
10
|
}, M = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, Q = ["onClick"], D = { class: "relative z-10" }, E = {
|
|
11
|
-
key:
|
|
11
|
+
key: 5,
|
|
12
12
|
class: "text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm"
|
|
13
|
-
}, X = /* @__PURE__ */
|
|
13
|
+
}, X = /* @__PURE__ */ N({
|
|
14
14
|
__name: "RequestAuthTab",
|
|
15
15
|
props: {
|
|
16
16
|
collection: {},
|
|
@@ -21,167 +21,178 @@ const z = {
|
|
|
21
21
|
server: {},
|
|
22
22
|
workspace: {}
|
|
23
23
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const { securitySchemes:
|
|
26
|
-
() =>
|
|
27
|
-
scheme:
|
|
24
|
+
setup(m) {
|
|
25
|
+
const { securitySchemes: B, securitySchemeMutators: I } = q(), $ = P(
|
|
26
|
+
() => m.securitySchemeUids.map((t) => ({
|
|
27
|
+
scheme: B[t]
|
|
28
28
|
}))
|
|
29
|
-
),
|
|
29
|
+
), i = j(""), K = (t) => {
|
|
30
30
|
if (t.type === "apiKey")
|
|
31
|
-
return `${
|
|
31
|
+
return `${c(t.nameKey)}: ${t.in}`;
|
|
32
32
|
if (t.type === "oauth2") {
|
|
33
33
|
const r = Object.values(t.flows ?? {})[0];
|
|
34
|
-
return `${
|
|
34
|
+
return `${c(t.nameKey)}: ${i.value ? i.value : (r == null ? void 0 : r.type) ?? ""}`;
|
|
35
35
|
}
|
|
36
|
-
return t.type === "http" ? `${
|
|
37
|
-
},
|
|
38
|
-
environment:
|
|
39
|
-
envVariables:
|
|
40
|
-
workspace:
|
|
36
|
+
return t.type === "http" ? `${c(t.nameKey)}: ${t.scheme}` : `${c(t.nameKey)}: ${t.type}`;
|
|
37
|
+
}, k = (t, r, e) => I.edit(t, r, e), v = {
|
|
38
|
+
environment: m.environment,
|
|
39
|
+
envVariables: m.envVariables,
|
|
40
|
+
workspace: m.workspace
|
|
41
41
|
};
|
|
42
|
-
return (t, r) => (o(!0), n(
|
|
42
|
+
return (t, r) => (o(!0), n(p, null, U($.value, ({ scheme: e }, F) => (o(), n(p, {
|
|
43
43
|
key: e == null ? void 0 : e.uid
|
|
44
44
|
}, [
|
|
45
|
-
|
|
45
|
+
$.value.length > 1 ? (o(), _(d(s), {
|
|
46
46
|
key: 0,
|
|
47
47
|
class: C({
|
|
48
48
|
"request-example-references-header": t.layout === "reference"
|
|
49
49
|
})
|
|
50
50
|
}, {
|
|
51
51
|
default: l(() => [
|
|
52
|
-
u(
|
|
52
|
+
u(d(S), {
|
|
53
53
|
class: C([
|
|
54
54
|
"text-c-3 flex items-center pl-3 font-medium",
|
|
55
|
-
t.layout === "reference" && `border-t ${
|
|
55
|
+
t.layout === "reference" && `border-t ${F !== 0 ? "mt-2" : ""}`
|
|
56
56
|
])
|
|
57
57
|
}, {
|
|
58
58
|
default: l(() => [
|
|
59
|
-
|
|
59
|
+
y(g(K(e)), 1)
|
|
60
60
|
]),
|
|
61
61
|
_: 2
|
|
62
62
|
}, 1032, ["class"])
|
|
63
63
|
]),
|
|
64
64
|
_: 2
|
|
65
|
-
}, 1032, ["class"])) :
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
}, 1032, ["class"])) : b("", !0),
|
|
66
|
+
e != null && e.description ? (o(), _(d(s), { key: 1 }, {
|
|
67
|
+
default: l(() => [
|
|
68
|
+
u(d(S), { class: "text-c-3 flex items-center overflow-auto whitespace-nowrap pl-3 font-medium" }, {
|
|
69
|
+
default: l(() => [
|
|
70
|
+
y(g(e.description), 1)
|
|
71
|
+
]),
|
|
72
|
+
_: 2
|
|
73
|
+
}, 1024)
|
|
74
|
+
]),
|
|
75
|
+
_: 2
|
|
76
|
+
}, 1024)) : b("", !0),
|
|
77
|
+
(e == null ? void 0 : e.type) === "http" ? (o(), n(p, { key: 2 }, [
|
|
78
|
+
e.scheme === "bearer" ? (o(), _(d(s), { key: 0 }, {
|
|
68
79
|
default: l(() => [
|
|
69
|
-
u(
|
|
80
|
+
u(w, V({ ref_for: !0 }, v, {
|
|
70
81
|
containerClass: t.layout === "reference" && "border-t",
|
|
71
82
|
modelValue: e.token,
|
|
72
83
|
placeholder: "Token",
|
|
73
84
|
type: "password",
|
|
74
|
-
"onUpdate:modelValue": (a) =>
|
|
85
|
+
"onUpdate:modelValue": (a) => k(e.uid, "token", a)
|
|
75
86
|
}), {
|
|
76
87
|
default: l(() => r[0] || (r[0] = [
|
|
77
|
-
|
|
88
|
+
y(" Bearer Token ")
|
|
78
89
|
])),
|
|
79
90
|
_: 2
|
|
80
91
|
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
81
92
|
]),
|
|
82
93
|
_: 2
|
|
83
|
-
}, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (o(), n(
|
|
84
|
-
u(
|
|
94
|
+
}, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (o(), n(p, { key: 1 }, [
|
|
95
|
+
u(d(s), null, {
|
|
85
96
|
default: l(() => [
|
|
86
|
-
u(
|
|
97
|
+
u(w, V({ ref_for: !0 }, v, {
|
|
87
98
|
class: "text-c-2",
|
|
88
99
|
containerClass: t.layout === "reference" && "auth-blend-required border-t",
|
|
89
100
|
modelValue: e.username,
|
|
90
101
|
placeholder: "janedoe",
|
|
91
102
|
required: "",
|
|
92
|
-
"onUpdate:modelValue": (a) =>
|
|
103
|
+
"onUpdate:modelValue": (a) => k(e.uid, "username", a)
|
|
93
104
|
}), {
|
|
94
105
|
default: l(() => r[1] || (r[1] = [
|
|
95
|
-
|
|
106
|
+
y(" Username ")
|
|
96
107
|
])),
|
|
97
108
|
_: 2
|
|
98
109
|
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
99
110
|
]),
|
|
100
111
|
_: 2
|
|
101
112
|
}, 1024),
|
|
102
|
-
u(
|
|
113
|
+
u(d(s), null, {
|
|
103
114
|
default: l(() => [
|
|
104
|
-
u(
|
|
115
|
+
u(w, V({ ref_for: !0 }, v, {
|
|
105
116
|
modelValue: e.password,
|
|
106
117
|
placeholder: "********",
|
|
107
118
|
type: "password",
|
|
108
|
-
"onUpdate:modelValue": (a) =>
|
|
119
|
+
"onUpdate:modelValue": (a) => k(e.uid, "password", a)
|
|
109
120
|
}), {
|
|
110
121
|
default: l(() => r[2] || (r[2] = [
|
|
111
|
-
|
|
122
|
+
y(" Password ")
|
|
112
123
|
])),
|
|
113
124
|
_: 2
|
|
114
125
|
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
115
126
|
]),
|
|
116
127
|
_: 2
|
|
117
128
|
}, 1024)
|
|
118
|
-
], 64)) :
|
|
119
|
-
], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (o(), n(
|
|
120
|
-
u(
|
|
129
|
+
], 64)) : b("", !0)
|
|
130
|
+
], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (o(), n(p, { key: 3 }, [
|
|
131
|
+
u(d(s), null, {
|
|
121
132
|
default: l(() => [
|
|
122
|
-
u(
|
|
133
|
+
u(w, V({ ref_for: !0 }, v, {
|
|
123
134
|
containerClass: t.layout === "reference" && "border-t",
|
|
124
135
|
modelValue: e.name,
|
|
125
136
|
placeholder: "api-key",
|
|
126
|
-
"onUpdate:modelValue": (a) =>
|
|
137
|
+
"onUpdate:modelValue": (a) => k(e.uid, "name", a)
|
|
127
138
|
}), {
|
|
128
139
|
default: l(() => r[3] || (r[3] = [
|
|
129
|
-
|
|
140
|
+
y(" Name ")
|
|
130
141
|
])),
|
|
131
142
|
_: 2
|
|
132
143
|
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
133
144
|
]),
|
|
134
145
|
_: 2
|
|
135
146
|
}, 1024),
|
|
136
|
-
u(
|
|
147
|
+
u(d(s), null, {
|
|
137
148
|
default: l(() => [
|
|
138
|
-
u(
|
|
149
|
+
u(w, V({ ref_for: !0 }, v, {
|
|
139
150
|
modelValue: e.value,
|
|
140
151
|
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
141
|
-
"onUpdate:modelValue": (a) =>
|
|
152
|
+
"onUpdate:modelValue": (a) => k(e.uid, "value", a)
|
|
142
153
|
}), {
|
|
143
154
|
default: l(() => r[4] || (r[4] = [
|
|
144
|
-
|
|
155
|
+
y(" Value ")
|
|
145
156
|
])),
|
|
146
157
|
_: 2
|
|
147
158
|
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
148
159
|
]),
|
|
149
160
|
_: 2
|
|
150
161
|
}, 1024)
|
|
151
|
-
], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (o(), n(
|
|
152
|
-
u(
|
|
162
|
+
], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (o(), n(p, { key: 4 }, [
|
|
163
|
+
u(d(s), null, {
|
|
153
164
|
default: l(() => [
|
|
154
165
|
Object.keys(e.flows).length > 1 ? (o(), n("div", z, [
|
|
155
166
|
T("div", M, [
|
|
156
|
-
(o(!0), n(
|
|
157
|
-
key:
|
|
167
|
+
(o(!0), n(p, null, U(e == null ? void 0 : e.flows, (a, f, x) => (o(), n("button", {
|
|
168
|
+
key: f,
|
|
158
169
|
class: C(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium", {
|
|
159
|
-
"!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (
|
|
160
|
-
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (
|
|
170
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (i.value === f || x === 0 && !i.value),
|
|
171
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (i.value === f || x === 0 && !i.value)
|
|
161
172
|
}]),
|
|
162
173
|
type: "button",
|
|
163
|
-
onClick: (L) =>
|
|
174
|
+
onClick: (L) => i.value = f
|
|
164
175
|
}, [
|
|
165
|
-
T("span", D,
|
|
176
|
+
T("span", D, g(f), 1)
|
|
166
177
|
], 10, Q))), 128))
|
|
167
178
|
])
|
|
168
|
-
])) :
|
|
179
|
+
])) : b("", !0)
|
|
169
180
|
]),
|
|
170
181
|
_: 2
|
|
171
182
|
}, 1024),
|
|
172
|
-
(o(!0), n(
|
|
173
|
-
|
|
183
|
+
(o(!0), n(p, null, U(e == null ? void 0 : e.flows, (a, f, x) => (o(), n(p, { key: f }, [
|
|
184
|
+
i.value === f || x === 0 && !i.value ? (o(), _(R, V({
|
|
174
185
|
key: 0,
|
|
175
186
|
ref_for: !0
|
|
176
|
-
},
|
|
187
|
+
}, v, {
|
|
177
188
|
collection: t.collection,
|
|
178
189
|
flow: a,
|
|
179
190
|
scheme: e,
|
|
180
191
|
server: t.server,
|
|
181
192
|
workspace: t.workspace
|
|
182
|
-
}), null, 16, ["collection", "flow", "scheme", "server", "workspace"])) :
|
|
193
|
+
}), null, 16, ["collection", "flow", "scheme", "server", "workspace"])) : b("", !0)
|
|
183
194
|
], 64))), 128))
|
|
184
|
-
], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (o(), n("div", E, " Coming soon ")) :
|
|
195
|
+
], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (o(), n("div", E, " Coming soon ")) : b("", !0)
|
|
185
196
|
], 64))), 128));
|
|
186
197
|
}
|
|
187
198
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AAiOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAIlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;IAC5C,eAAe,CAAC,EAAE;QAChB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,OAAO,CAAA;QAChB,KAAK,EAAE,gBAAgB,CAAA;KACxB,EAAE,CAAA;IACH,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAC;;
|
|
1
|
+
{"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AAiOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAIlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;IAC5C,eAAe,CAAC,EAAE;QAChB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,OAAO,CAAA;QAChB,KAAK,EAAE,gBAAgB,CAAA;KACxB,EAAE,CAAA;IACH,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAC;;AA8UF,wBAOG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, computed as m, onMounted as T, ref as S, watch as N, openBlock as
|
|
1
|
+
import { defineComponent as O, computed as m, onMounted as T, ref as S, watch as N, openBlock as c, createBlock as d, withCtx as s, createTextVNode as b, toDisplayString as k, createElementVNode as i, unref as h, createVNode as w, withModifiers as z, createCommentVNode as P, normalizeClass as A, nextTick as R } from "vue";
|
|
2
2
|
import { ScalarTooltip as B, ScalarButton as M } from "@scalar/components";
|
|
3
3
|
import { requestExampleParametersSchema as x } from "@scalar/oas-utils/entities/spec";
|
|
4
4
|
import W from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
@@ -17,36 +17,36 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
17
17
|
invalidParams: {}
|
|
18
18
|
},
|
|
19
19
|
setup(t) {
|
|
20
|
-
const { requestExampleMutators: r } = D(),
|
|
20
|
+
const { requestExampleMutators: r } = D(), l = m(() => t.example.parameters[t.paramKey] ?? []);
|
|
21
21
|
T(() => v());
|
|
22
22
|
const o = () => {
|
|
23
|
-
const e = x.parse({ enabled: !1 }), a = [...
|
|
23
|
+
const e = x.parse({ enabled: !1 }), a = [...l.value, e];
|
|
24
24
|
r.edit(t.example.uid, `parameters.${t.paramKey}`, a);
|
|
25
|
-
}, u = S(null), C = (e, a,
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
28
|
-
const n = [...
|
|
25
|
+
}, u = S(null), C = (e, a, y) => {
|
|
26
|
+
const p = l.value;
|
|
27
|
+
if (p.length > e) {
|
|
28
|
+
const n = [...p];
|
|
29
29
|
if (!n[e]) return;
|
|
30
|
-
n[e] = { ...n[e], [a]:
|
|
30
|
+
n[e] = { ...n[e], [a]: y }, (n[e].key !== "" || n[e].value !== "") && (n[e].enabled = !0), n[e].key === "" && n[e].value === "" && n.splice(e, 1), r.edit(
|
|
31
31
|
t.example.uid,
|
|
32
32
|
`parameters.${t.paramKey}`,
|
|
33
33
|
n
|
|
34
34
|
);
|
|
35
35
|
} else {
|
|
36
|
-
const n = [x.parse({ [a]:
|
|
36
|
+
const n = [x.parse({ [a]: y })];
|
|
37
37
|
r.edit(t.example.uid, `parameters.${t.paramKey}`, n), R(() => {
|
|
38
|
-
var
|
|
38
|
+
var g;
|
|
39
39
|
if (!u.value) return;
|
|
40
|
-
(
|
|
40
|
+
(g = u.value.querySelectorAll("input")[a === "key" ? 0 : 1]) == null || g.focus();
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
e ===
|
|
43
|
+
e === p.length - 1 && o();
|
|
44
44
|
}, q = (e, a) => r.edit(
|
|
45
45
|
t.example.uid,
|
|
46
46
|
`parameters.${t.paramKey}.${e}.enabled`,
|
|
47
47
|
a
|
|
48
48
|
), E = () => {
|
|
49
|
-
const e =
|
|
49
|
+
const e = l.value.filter((a) => a.required);
|
|
50
50
|
r.edit(
|
|
51
51
|
t.example.uid,
|
|
52
52
|
`parameters.${t.paramKey}`,
|
|
@@ -54,16 +54,16 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
54
54
|
), R(() => o());
|
|
55
55
|
};
|
|
56
56
|
function v() {
|
|
57
|
-
if (
|
|
57
|
+
if (l.value.length === 0)
|
|
58
58
|
o();
|
|
59
|
-
else if (
|
|
60
|
-
const e =
|
|
59
|
+
else if (l.value.length >= 1) {
|
|
60
|
+
const e = l.value[l.value.length - 1];
|
|
61
61
|
e && e.key !== "" && e.value !== "" && o();
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
const K = m(
|
|
65
|
-
() =>
|
|
66
|
-
), $ = m(() =>
|
|
65
|
+
() => l.value.filter((e) => e.key || e.value).length
|
|
66
|
+
), $ = m(() => l.value.length > 1);
|
|
67
67
|
N(
|
|
68
68
|
() => t.example,
|
|
69
69
|
(e, a) => {
|
|
@@ -72,35 +72,35 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
72
72
|
{ immediate: !0 }
|
|
73
73
|
);
|
|
74
74
|
const f = m(() => (t.readOnlyEntries ?? []).length > 0);
|
|
75
|
-
return (e, a) => (
|
|
75
|
+
return (e, a) => (c(), d(W, {
|
|
76
76
|
class: "group/params",
|
|
77
77
|
itemCount: K.value
|
|
78
78
|
}, {
|
|
79
|
-
title:
|
|
79
|
+
title: s(() => [
|
|
80
80
|
b(k(e.title), 1)
|
|
81
81
|
]),
|
|
82
|
-
actions:
|
|
82
|
+
actions: s(() => [
|
|
83
83
|
i("div", G, [
|
|
84
|
-
$.value ? (
|
|
84
|
+
$.value ? (c(), d(h(B), {
|
|
85
85
|
key: 0,
|
|
86
|
-
side: "
|
|
87
|
-
sideOffset:
|
|
86
|
+
side: "left",
|
|
87
|
+
sideOffset: 6
|
|
88
88
|
}, {
|
|
89
|
-
trigger:
|
|
89
|
+
trigger: s(() => [
|
|
90
90
|
w(h(M), {
|
|
91
|
-
class: "
|
|
91
|
+
class: "pr-0.75 pl-1 transition-none",
|
|
92
92
|
size: "sm",
|
|
93
93
|
variant: "ghost",
|
|
94
94
|
onClick: z(E, ["stop"])
|
|
95
95
|
}, {
|
|
96
|
-
default:
|
|
96
|
+
default: s(() => [
|
|
97
97
|
a[0] || (a[0] = b(" Clear ")),
|
|
98
98
|
i("span", U, "All " + k(e.title), 1)
|
|
99
99
|
]),
|
|
100
100
|
_: 1
|
|
101
101
|
})
|
|
102
102
|
]),
|
|
103
|
-
content:
|
|
103
|
+
content: s(() => a[1] || (a[1] = [
|
|
104
104
|
i("div", { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none z-10 grid min-w-48 gap-1.5 rounded p-2 leading-5 shadow-lg" }, [
|
|
105
105
|
i("div", { class: "text-c-2 flex items-center" }, [
|
|
106
106
|
i("span", null, "Clear optional parameters")
|
|
@@ -111,12 +111,12 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
111
111
|
})) : P("", !0)
|
|
112
112
|
])
|
|
113
113
|
]),
|
|
114
|
-
default:
|
|
114
|
+
default: s(() => [
|
|
115
115
|
i("div", {
|
|
116
116
|
ref_key: "tableWrapperRef",
|
|
117
117
|
ref: u
|
|
118
118
|
}, [
|
|
119
|
-
f.value ? (
|
|
119
|
+
f.value ? (c(), d(V, {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: A(["flex-1", {
|
|
122
122
|
"bg-mix-transparent bg-mix-amount-95 bg-c-3": f.value
|
|
@@ -135,7 +135,7 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
|
|
|
135
135
|
columns: ["32px", "", ""],
|
|
136
136
|
envVariables: e.envVariables,
|
|
137
137
|
environment: e.environment,
|
|
138
|
-
items:
|
|
138
|
+
items: l.value,
|
|
139
139
|
workspace: e.workspace,
|
|
140
140
|
invalidParams: e.invalidParams,
|
|
141
141
|
onToggleRow: q,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,CAAC,EAAE,CAAA;IAClE,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;;;;;;;yBARsB,OAAO;sBACV,OAAO;cACf,OAAO;gBACL,OAAO;;AA+gBxB,wBASG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7f27d2f7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|